{"body":"-- If one wanted apply two different functions on alternate members of a list - one would go about doing it like this ..... eg ... altMap' (+10) (+100) [0,1,2,3,4]\n[10,101,12,103,14]\n\n-- This is the definition\naltMap' :: (a -> b) -> (a -> b) -> [a] -> [b]\naltMap' _ _ [] = []\naltMap' f f' (x:xs) = f x : altMap' f' f xs\n\n-- *However - is there an elegant way to do this with three alternating functions instead of two?*\n","name":"","extension":"hs","url":"https://www.irccloud.com/pastebin/womt9nSr","modified":1651334182,"id":"womt9nSr","size":420,"lines":9,"own_paste":false,"theme":"","date":1651334182}