at


at(xs, n)
      

Return the nth (zero based) element from the list xs.

Raise an error if n is not in 0 <= n < length(xs) or if xs is not a proper list.

Examples:


let xs = ["this", "is", "a", "list", "of", "strings"]
at(xs, 3)
// list
xs[0]
// this
      

Also see:

ref


Core Module Index | Contents