F# how to add type to list?

Viewed 466

So I am trying to create a card game for school project with F#. I am coming from C# and having problems in understanding stuff in F#. I have type

Player = {Name : String; Hand : Card list} which represents the player

then I have deck which has cards inside. How can I move the first card from the deck to players hand? In C# I would be using something like removeat[i].

3 Answers
Related