title: Is it possible to make a cycle in an immutable linked list?
body: <p>Suppose that we have the following structure in Java:</p>
  
  <pre><code>class List {
    // we're immutable
    final List next;
    final int value;
  
    public List(int value, List next) {
      this.next = next;
      this.value = value;
    }
  }
  </code></pre>
  
  <p>Scala has built-in support for immutable singly-linked list. It would be:</p>
  
  <pre><code>val l = List(1, 2, 3) // immutable
  </code></pre>
  
  <p>So, is it possible to make a cycle in this kind of lists (immutable singly-linked list). By cycle, I mean the following:</p>
  
  <p><img src="https://i.stack.imgur.com/W2NBa.png" alt="enter image description here"></p>