Ad
  • Custom User Avatar

    What's that even supposed to mean? In the usual persistent lists inspired by pure functional languages, 'next' can't change. Eg, with xs.append(ys), there would be no sharing of nodes with xs, only ys.

  • Custom User Avatar

    Only if the 'next' needs to change.

  • Custom User Avatar

    Immutable means I can't change next right ?

    Only choice I have to create another one.