13 Aug
2012
13 Aug
'12
1:37 p.m.
Hi, --- On Mon, Aug 13, 2012 at 10:51 AM, Christopher Howard <christopher.howard@frigidcode.com> wrote: | Say, for example, I have the list | [[1,2],[3,4]] and want to add 1 to each inner element, resulting in | [[2,3],[4,5]]. \-- Like this? ghci> let xxs = [[1,2], [3,4]] ghci> [ [ x+1 | x <- xs] | xs <- xxs ] [[2,3],[4,5]] SK -- Shakthi Kannan http://www.shakthimaan.com