Show
Ignore:
Timestamp:
09/29/06 20:26:31 (2 years ago)
Author:
lanny
Message:

* implemented cat()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/List.hs

    r13726 r13728  
    22 
    33module Pugs.Prim.List ( 
    4     op0Zip, op0Each, op0RoundRobin, op1Pick, op1Sum, 
     4    op0Zip, op0Cat, op0Each, op0RoundRobin, op1Pick, op1Sum, 
    55    op1Min, op1Max, op1Uniq, 
    66    op2ReduceL, op2Reduce, op2Grep, op2Map, op2Join, 
     
    1616import Pugs.Prim.Numeric 
    1717import Pugs.Prim.Lifts 
     18 
     19op0Cat :: [Val] -> Eval Val 
     20op0Cat = fmap (VList . concat) . mapM fromVal 
    1821 
    1922op0Zip :: [Val] -> Eval Val