Carrot reference
...
Fields
Data Types
Sequence
an internal representation of a stream of objects that behaves like a list docid\ xwh cukhj9waqaefb7h71 the main difference between a sequence and a list is that a sequence performs more efficiently when operating on large sets of data you can usually treat this like a list properties property type description first object the first object in the sequence last object the last object in the sequence length number docid\ uci5tctfvbhonej6zqijg the number of entries contained in the sequence reversed sequence docid\ jg4itlqwafzlparttfo67 the sequence, in reverse order sequences and methods most commonly, a sequence is used together with methods docid\ e xs 5qfsphnplu0ozzuu , especially @filter @limit @sort or @sortdesc for example db job find{department\ engineering} returns a sequence of jobs in the engineering department to return the first 5 jobs with more than $100k in base comp, sorted in alphabetical order by title, you could use db job find{department\ engineering} filter{basecomp > 100000} sort{title} limit(5}