Skip to content

Instantly share code, notes, and snippets.

@smiler
Last active December 27, 2015 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save smiler/7353931 to your computer and use it in GitHub Desktop.
Save smiler/7353931 to your computer and use it in GitHub Desktop.
(let [dt (elapsed-time t)
move' #(move % dt)
balls' (map move' balls)
balls'' (map #(keep-in-bounds dt ctx %) balls')]
;; Do stuff with balls
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment