F# add values to existing list

Viewed 123

Continuing with the series of creating card game with F#. Now I am stuck with adding values to list of cards. I have

type Player = {Name : String; Hand : Card list}

I am able to get the card from the deck and it works well. I can also create new list with

let player = {Name = "Player"; Hand = List.Empty}
let testlist = List.append player.Hand anotherlist

But I cannot figure out how to put add the anotherlist directly to players hand.

1 Answers
Related