cons operator (::) in F#

Posted by Max on Stack Overflow See other posts from Stack Overflow or by Max
Published on 2010-03-20T13:15:28Z Indexed on 2010/03/20 13:21 UTC
Read the original article Hit count: 290

Filed under:
|

The :: operator in F# always prepends elements to the list. Is there an operator that appends to the list? I'm guessing that using @ operator

[1; 2; 3] @ [4]

would be less efficient, than appending one element.

© Stack Overflow or respective owner

Related posts about F#

Related posts about functional-programming