w/o pipe operator
def create_hand(hand_size) do
deck = Cards.create_deck
deck= Cards.shuffle(deck)
hand = Cards.deal(deck, hand_size)
end
w/ pipe operator
def create_hand(hand_size) do
Cards.create_deck
|> Cards.shuffle
|> Cards.deal(hand_size) # always applied to the first argument.
end