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
According to https://reasonml.github.io/docs/en/list-and-array, spread syntax for appending items to a list is just an alternative to List.cons. I couldn't find any reference to such a method name List.cons in API docs.
Is it a real thing or just a typo of List.concat?
The text was updated successfully, but these errors were encountered:
I was looking for the same thing, and I don't think List.cons exists in the Reason/BuckleScript/Belt libraries in the mentioned form. I think they are referring to the List.cons from the OCaml (standard?) library, like here: https://caml.inria.fr/pub/docs/manual-ocaml/libref/List.html
It sounds like this page is saying [h, ...t] is the Reason equivalent of List.cons, but it could be more clear.
According to https://reasonml.github.io/docs/en/list-and-array, spread syntax for appending items to a list is just an alternative to
List.cons
. I couldn't find any reference to such a method nameList.cons
in API docs.Is it a real thing or just a typo of
List.concat
?The text was updated successfully, but these errors were encountered: