python Programming Glossary: pleat
What do we call this (new?) higher-order function? http://stackoverflow.com/questions/3774247/what-do-we-call-this-new-higher-order-function the concept which will be explained afterward. Python def pleat f l return map lambda t f t zip l l 1 pleat operator.add 0 1.. Python def pleat f l return map lambda t f t zip l l 1 pleat operator.add 0 1 2 3 1 3 5 Haskell Prelude let pleatWith f xs.. l l 1 pleat operator.add 0 1 2 3 1 3 5 Haskell Prelude let pleatWith f xs zipWith f xs drop 1 xs Prelude pleatWith 0 1 2 3 1..
|