Skip to content

Instantly share code, notes, and snippets.

@erasmas
Last active January 3, 2016 00:49
Show Gist options
  • Save erasmas/8385212 to your computer and use it in GitHub Desktop.
Save erasmas/8385212 to your computer and use it in GitHub Desktop.
Drop every nth item from sequence
(fn [s n]
(keep-indexed
(fn [i v] (when (pos? (mod (inc i) n)) v))
s))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment