Set.sequence()

Get an ordered Set of values given beginning and ending values.

Signature

Set.sequence(start: Int, end: Int): Set

Description

Generate an ordered Set of integers beginning with start, inclusive, and ending with end, exclusive. The end value must be greater than start.

Parameters

Parameter Type Required Description

start

Int

Yes

Start of sequence, inclusive.

end

Int

Yes

End of sequence, exclusive.

Return value

Type Description

Set

Set of ordered values from start, inclusive, to end, exclusive.

Examples

Set.sequence(1, 5)
{
  data: [
    1,
    2,
    3,
    4
  ]
}

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!