Changeset 3475
- Timestamp:
- 05/20/05 00:19:22 (4 years ago)
- svk:copy_cache_prev:
- 5016
- Files:
-
- 1 modified
-
src/Pugs/Prim/List.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/List.hs
r3473 r3475 59 59 evl (App (Val sub) [Val x, Val y] []) 60 60 case subAssoc code of 61 "left" -> foldM doFold (head args) (tail args)62 61 "right" -> do 63 62 let args' = reverse args … … 70 69 _ -> return val 71 70 foldM doFold' (head args) (tail args) 72 _ -> fail $ "Cannot reduce over associativity:" ++ show (subAssoc code) 71 "non" -> fail $ "Cannot reduce over non-associativity" 72 _ -> foldM doFold (head args) (tail args) -- "left", "pre" 73 73 74 74 op2Grep :: Val -> Val -> Eval Val
