Set.sequence()

Create an ordered Set of Numbers given start and end values.

Signature

Set.sequence(from: Number, until: Number) => Set<Number>

Description

Create an ordered Set of integers beginning with provided start and end integers.

Parameters

Parameter Type Required Description

from

Number

Yes

Start of the sequence (inclusive). Must be an Int.

until

Number

Yes

End of the sequence (exclusive). Must be an Int.

Return value

Type Description

Set<Number>

Set of ordered integers.

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!