::
operator is more or less equivalent to cons in Lisp, ML, and similar languages. When you're pattern matching, it extracts. When you're declaring or assigning variables (particularly Lists), it concatenates.
Subscribe to:
Post Comments (Atom)
Learning Scala. The hard way.
::
operator is more or less equivalent to cons in Lisp, ML, and similar languages. When you're pattern matching, it extracts. When you're declaring or assigning variables (particularly Lists), it concatenates.
No comments:
Post a Comment