Created
April 5, 2018 06:13
-
-
Save MarcoWorms/6fe37c632d164acb4fa3f57974c3a862 to your computer and use it in GitHub Desktop.
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
const draw = curry((cardPicker, deck) => { | |
const card = cardPicker(deck) | |
const newDeck = without(card, deck) | |
return { card, newDeck } | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment