Skip to content

Commit

Permalink
added deal which has multiple return
Browse files Browse the repository at this point in the history
  • Loading branch information
gandhi-jay committed Dec 2, 2017
1 parent 332f46d commit 653755f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go_stephen_grider/code/03_cards_deck/deck.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ func newDeck() deck {

return cards
}

func deal(d deck, handSize int) (deck, deck) {
return d[:handSize], d[handSize:]
}

0 comments on commit 653755f

Please sign in to comment.