App-RecordStream
view release on metacpan or search on metacpan
doc/recs-collate.pod view on Meta::CPAN
Force the object into a specific type. Can be used to force certain
upconversions (or avoid them).
valuation(sub { ... })
val(sub { ... })
Takes a subref, creates a valuation that represents it. The subref will
get the record as its first and only argument.
Example(s):
To get the square of the "x" field:
val(sub{ $[0]->{x} ** 2 })
xform(<aggregator>, <snippet>)
Takes an aggregator and a snippet and produces an aggregator the
represents invoking the snippet on the aggregator's result.
Example(s):
To take the difference between the first and second time fields of the record collection:
xform(recs(), <<{{1/time}} - {{0/time}}>>)
Help from: --help-keygroups:
doc/recs-decollate.pod view on Meta::CPAN
Force the object into a specific type. Can be used to force certain
upconversions (or avoid them).
valuation(sub { ... })
val(sub { ... })
Takes a subref, creates a valuation that represents it. The subref will
get the record as its first and only argument.
Example(s):
To get the square of the "x" field:
val(sub{ $[0]->{x} ** 2 })
xform(<aggregator>, <snippet>)
Takes an aggregator and a snippet and produces an aggregator the
represents invoking the snippet on the aggregator's result.
Example(s):
To take the difference between the first and second time fields of the record collection:
xform(recs(), <<{{1/time}} - {{0/time}}>>)
doc/recs-multiplex.pod view on Meta::CPAN
Force the object into a specific type. Can be used to force certain
upconversions (or avoid them).
valuation(sub { ... })
val(sub { ... })
Takes a subref, creates a valuation that represents it. The subref will
get the record as its first and only argument.
Example(s):
To get the square of the "x" field:
val(sub{ $[0]->{x} ** 2 })
xform(<aggregator>, <snippet>)
Takes an aggregator and a snippet and produces an aggregator the
represents invoking the snippet on the aggregator's result.
Example(s):
To take the difference between the first and second time fields of the record collection:
xform(recs(), <<{{1/time}} - {{0/time}}>>)
Help from: --help-keygroups:
lib/App/RecordStream/DomainLanguage.pm view on Meta::CPAN
valuation(sub { ... })
val(sub { ... })
__FORMAT_TEXT__
Takes a subref, creates a valuation that represents it. The subref will
get the record as its first and only argument.
__FORMAT_TEXT__
Example(s):
To get the square of the "x" field:
val(sub{ \$[0]->{x} ** 2 })
xform(<aggregator>, <snippet>)
__FORMAT_TEXT__
Takes an aggregator and a snippet and produces an aggregator the
represents invoking the snippet on the aggregator's result.
__FORMAT_TEXT__
Example(s):
To take the difference between the first and second time fields of the record collection:
xform(recs(), <<{{1/time}} - {{0/time}}>>)
( run in 0.380 second using v1.01-cache-2.11-cpan-cc502c75498 )