Skip to content

Instantly share code, notes, and snippets.

@gdejohn
Created March 18, 2016 23:54
Show Gist options
  • Save gdejohn/762b1312d9aa9a86f468 to your computer and use it in GitHub Desktop.
Save gdejohn/762b1312d9aa9a86f468 to your computer and use it in GitHub Desktop.
mapEveryNth n f = zipWith ($) $ tail $ cycle $ f : replicate (n - 1) id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment