Changeset 2968 for src/Pugs/Prim/List.hs
- Timestamp:
- 05/11/05 16:19:49 (4 years ago)
- svk:copy_cache_prev:
- 4536
- Files:
-
- 1 modified
-
src/Pugs/Prim/List.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Prim/List.hs
r2961 r2968 11 11 import Pugs.Prim.Numeric 12 12 13 op0Zip :: [[Val]] -> [[Val]] 14 op0Zip lists | all null lists = [] 15 op0Zip lists = (map zipFirst lists):(op0Zip (map zipRest lists)) 13 op0Zip = fmap (VList . concat . op0Zip') . mapM fromVal 14 15 op0Zip' :: [[Val]] -> [[Val]] 16 op0Zip' lists | all null lists = [] 17 op0Zip' lists = (map zipFirst lists):(op0Zip' (map zipRest lists)) 16 18 where 17 19 zipFirst [] = undef
