Skip to content

Instantly share code, notes, and snippets.

@hagmonk
Created March 8, 2018 20:58
Show Gist options
  • Save hagmonk/c1d03f8f359708be22a60a0cbecbf400 to your computer and use it in GitHub Desktop.
Save hagmonk/c1d03f8f359708be22a60a0cbecbf400 to your computer and use it in GitHub Desktop.
cycle
(mapv #(%1 %2) (cycle [(partial identity) #(* %1 -1)]) [1 2 3 4 5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment