j
k
j a
j l
On Mon, Jul 21, 2008 at 11:21 AM, Bernie Pope wrote:
suffix = 5 : [ x + y | (x,y) <- zip suffix (cycle [2,4])] list = 2 : 3 : suffix
'suffix' can be simplified a bit by using zipWith: suffix = 5 : zipWith (+) suffix (cycle [2,4]) Thanks, -- Felipe.
Back to the thread
Back to the list