Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.
tarcieri edited this page Feb 12, 2011 · 8 revisions

Lists are immutable and singly linked. A list literal looks like:

[1,2,3,4,5]

Instance methods

Note: work on List methods is ongoing.

List#[]

  • Ruby equivalent: Array#[]
  • Erlang equivalent: lists:nth/2, lists:seq/2
  • Implemented: partial

Retrieve the nth element of a list.

Clone this wiki locally