Prism · Sugar
$take
The first elements of a list, as many as asked for. Shorthand for a $slice from the start.
{ numbers: [10, 20, 30, 40, 50, 60, 70, 80] }{ $take: { from: { $ref: '$.numbers' }, count: 3 } }[10, 20, 30]
Runs in this page on the installed package. The input and the expected output are defined by the example.