You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let myThings = [1; 2; 3; 4; 5]
match myThings with
| Empty -> failwith "oh"
| NotEmpty (Uncons (head, tail)) -> printf "%i, then the rest: %A" head tail
Add an uncons pattern so I can do something like
outputs "1, then the rest: [2; 3; 4; 5]"