Changeset 643
- Timestamp:
- 03/13/05 08:19:18 (4 years ago)
- svk:copy_cache_prev:
- 1998
- Files:
-
- 1 modified
-
src/Prim.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Prim.hs
r642 r643 33 33 epoch = CalendarTime 2000 January 1 0 0 0 0 Saturday 0 "UTC" 0 False 34 34 op0 "not" = const retEmpty 35 op0 s = \x -> return $ VError ("unimplemented listOp: " ++ s) (Val $ VList x)36 37 35 op0 "¥" = return . VList . concat . transpose . map vCast 38 36 op0 "Y" = op0 "¥" 37 op0 other = \x -> return $ VError ("unimplemented listOp: " ++ other) (App other (map Val x) []) 39 38 40 39 retEmpty = do … … 215 214 op1 "shift"= op1Pop (head, tail) 216 215 op1 "pick" = op1Pick 217 op1 s = return . (\x -> VError ("unimplemented unaryOp: " ++ s) (Val x))216 op1 other = return . (\x -> VError ("unimplemented unaryOp: " ++ other) (App other [Val x] [])) 218 217 219 218 … … 382 381 | glue `isPrefixOf` rest = ([], rest) 383 382 | otherwise = (x:piece, rest') where (piece, rest') = breakOnGlue glue xs 384 op2 s = \x y -> return $ VError ("unimplemented binaryOp: " ++ s) (App s [] [Val x, Val y])383 op2 other = \x y -> return $ VError ("unimplemented binaryOp: " ++ other) (App other [Val x, Val y] []) 385 384 386 385 op2Hyper op x y
