2 ms·
In clojure: (-> someGameState handleCollisions handleShake handlePolice ;; ... renderGameState) ;; ->> would work as we
by ajuc 5y ago
In clojure:
(-> someGameState
handleCollisions
handleShake
handlePolice
;; ...
renderGameState)
;; ->> would work as well in this example cause it's both first and last argument
But this code is only pretending to be functional, because in practice every function can modify everything. So looking at this I have no idea where the particles were created - I have to look at every function anyway.