Singly-linked list/Traversal: Difference between revisions

Content added Content deleted
No edit summary
Line 842: Line 842:


<lang dyalect>type List = Cons(value, tail) or Nil()
<lang dyalect>type List = Cons(value, tail) or Nil()
with Lookup
static func List.FromArray(xs) {
static func List.FromArray(xs) {