I'm trying to declare a function that takes a list of records inside a tuple as an argument but the syntax is not as intuitive as I would have liked.
Here's what I'm trying to do:
type Player = {id:int, privateStack:int list};
fun foo(({id, x::xs}:Player)::players, ...) = (* wrong syntax *)
(* do something *)
{id=ID, privateStack=x::xs}otherwise I guess it treats them as constructors.