Skip to content

Instantly share code, notes, and snippets.

@klapaucius
Created December 16, 2011 11:47
Show Gist options
  • Select an option

  • Save klapaucius/1485769 to your computer and use it in GitHub Desktop.

Select an option

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