Created
May 15, 2012 13:10
-
-
Save jvillste/2701632 to your computer and use it in GitHub Desktop.
Functional programming patterns
This file contains 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
Create new entity and insert it to a collection. Return the modified collection and the new entity | |
(let [updated-collection new-entity] (add-entity collection)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment