[Haskell-cafe] Empty Input list

Chris Smith cdsmith at gmail.com
Mon Mar 12 21:50:09 CET 2012


Oh, and just to point this out, the function you're writing already
exists in Data.List.  It's called (!!).  Well, except that it's zero
indexed, so your function is more like:

tmp xs y = xs !! (y-1)



More information about the Haskell-Cafe mailing list