Changeset 15297 for src/Pugs/Prim/List.hs
- Timestamp:
- 02/18/07 15:59:02 (21 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Prim/List.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/List.hs
r15296 r15297 317 317 _neg1 = return (VInt $ -1) 318 318 _junc = \jtyp -> return . VJunc $ MkJunc jtyp Set.empty Set.empty 319 _'' = return ( _VStr "")319 _'' = return (VStr "") 320 320 _fail = fail $ "reduce is nonsensical for " ++ cast name 321 321 … … 381 381 list <- readRef ref 382 382 strList <- fromVals list 383 return . _VStr . concat . intersperse str $ strList383 return . VStr . concat . intersperse str $ strList 384 384 385 385 sortByM :: (Val -> Val -> Eval Bool) -> [Val] -> Eval [Val]
