[Haskell-cafe] HMatrix Vector/Matrix interpolation ala Matlab interp/interp2 ??

Ferenc Wagner wferi at niif.hu
Wed Jan 26 02:22:51 CET 2011


aditya siram <aditya.siram at gmail.com> writes:

>   byTwos :: [a] -> [(a,a)]
>   byTwos []        = []
>   byTwos (x:[])    = []
>   byTwos (x:y:xs)  = (x,y) : byTwos (y:xs)

byTwos l = zip l (tail l)
-- 
Cheers,
Feri.



More information about the Haskell-Cafe mailing list