Skip to content

Noob - Help me understand assert #3648

Answered by mtzguido
callendorph asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Carl,

lists in F* are separated with ;, not ,. Comma is used to separate tuple components, and outer parentheses are not required (I think both OCaml and F# use similar syntax). So, in your examples all your lists are actually one-element long, and the element is a tuple. So rev2 [(1,2,3)] is indeed [(1,2,3)].

(It is sometimes confusing to me though... I stared at this for a couple of minutes being completely dumbfounded.)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@callendorph
Comment options

Answer selected by callendorph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants