7

What does :: mean here ?

listeners ::= listener
list = num :: list

Specially I don't understand the "::" operator.

Gamoonbi
  • 385
  • 1
  • 4
  • 10

1 Answers1

14

Its the list cons operator. It creates a new list whose head is first argument and whose tail is contents of the second argument.

Gil
  • 206
  • 2
  • 2