Changeset 10315 for src/Pugs/Prim/List.hs
- Timestamp:
- 05/13/06 03:12:48 (3 years ago)
- svk:copy_cache_prev:
- 13387
- Files:
-
- 1 modified
-
src/Pugs/Prim/List.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/List.hs
r10246 r10315 167 167 code <- fromVal sub 168 168 args <- fromVal list 169 cxt <- asks envContext170 let (reduceM, reduceMn) = getReduceFuncs cxt169 -- cxt <- asks envContext 170 let (reduceM, reduceMn) = (foldM, foldMn) -- getReduceFuncs cxt 171 171 let arity = length $ subParams code 172 172 if arity < 2 then fail "Cannot reduce() using a unary or nullary function." else do
