Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

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!