> fields = csv `separateWith` ","
> csv = fields `joinWith` "," -- equivalent to concatIntersperse

Hence I would much rather have the split condition be the first
parameter -- the infix notation looks good, but it will need a
"flip" to get the parameters in the right order.

This also goes along with join in python, i.e.

"\n".join(xs)
 ==>
"\n" `join` xs
  in Haskell (where    join sep = concat . intersperse sep )

 Jared.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to