Skip to content

Instantly share code, notes, and snippets.

@klapaucius
Created December 16, 2011 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klapaucius/1485769 to your computer and use it in GitHub Desktop.
Save klapaucius/1485769 to your computer and use it in GitHub Desktop.
n+k
mvmap f v = go $ M.length v where
go 0 = return ()
go (n + 1) = update v n f >> go n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment