Created
October 26, 2013 00:20
-
-
Save MichaelDrogalis/7163819 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn put-into-ch [channel car] | |
| (.put channel car)) | |
| (defn take-from-channel [channel] | |
| (.take channel)) | |
| (defn ch->lane [{:keys [channel state] :as entity} d-fn] | |
| (if-not (zero? (.size channel)) | |
| (add-to-lane entity (take-from-channel channel) d-fn) | |
| entity)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment