vemod.net
:
Projects
,
About
and
Table of Contents
Site Tags
:
Ruby
,
Mac
,
Haskell
and
more
.
mapWithIndex
mapWithIndex
:: (
a
->
Int
->
b
) -> [
a
] -> [
b
] mapWithIndex f xs =
zipWith
f xs [0..]