Skip to content

Instantly share code, notes, and snippets.

@MarcoWorms
Created April 5, 2018 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcoWorms/6fe37c632d164acb4fa3f57974c3a862 to your computer and use it in GitHub Desktop.
Save MarcoWorms/6fe37c632d164acb4fa3f57974c3a862 to your computer and use it in GitHub Desktop.
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