Skip to content

Instantly share code, notes, and snippets.

@tarynsauer
Created April 14, 2014 03:18
Show Gist options
  • Save tarynsauer/10613430 to your computer and use it in GitHub Desktop.
Save tarynsauer/10613430 to your computer and use it in GitHub Desktop.
(defn annotate-assignments [apprentices duties]
(-> apprentices
(assign-foreman)
(assign-av av-experienced)
(assign-av av-novice)
(assign-all-required-duties duties)
(assign-all-remaining-apprentices duties)
))
(defn assign [apprentices duties unavailable foreman]
(-> apprentices
(annotate-options duties)
(annotate-foreman foreman)
(remove-unavailable unavailable)
(annotate-assignments duties)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment