Show
Ignore:
Timestamp:
05/13/06 03:12:48 (3 years ago)
Author:
audreyt
svk:copy_cache_prev:
13387
Message:

* Prim.List: [+] 1,2,3 is again fold, not scan.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/List.hs

    r10246 r10315  
    167167    code <- fromVal sub 
    168168    args <- fromVal list 
    169     cxt  <- asks envContext 
    170     let (reduceM, reduceMn) = getReduceFuncs cxt 
     169    -- cxt  <- asks envContext 
     170    let (reduceM, reduceMn) = (foldM, foldMn) -- getReduceFuncs cxt 
    171171    let arity = length $ subParams code 
    172172    if arity < 2 then fail "Cannot reduce() using a unary or nullary function." else do