sai-library
This is the runtime library for the sai-language
package.
Runtime library for sai-language compiled scripts.
This is the runtime library for the sai-language
package.
create_op
to work with both constructors and bare prototypes.in_op
for querying collections for multiple valuesfind_op
for queriyng collections for a single value forwards & backwardskviterate_op
also bug in test suite i guesssum_op
so embarassingenvironment
to give running modules access to the information about their SAI contextreduce_op_fast
is now sum_op
reduce_op
is now a true reduce that expects functions to take two items and produce one; if there is only one item, the function is NOT called.unbound
for performancel_op
logical operator; calculates boolean results on collectionsexpects_op
to use hasOwnProperty
like it should have all alongoverlay_op
, regularizing how a leftside static and rightside iterator work in comparison to update_op
.reduce_op_fast
is similar to reduce_op
but does not take special action on an undefined
start value. SAI is moving to this new approach as pipers are integrated.clone_op
to copy undefined values as well (not sure why I had it ignoring undefined values before)assert_op
now returns the value we tested withassert_op
also now actually prints the error message (cool, eh)unbound
@
for this attributes.#!
from "created" objects to avoid compile errors.slice_op
expects
limit
now operates on characters in strings as well as arrays, and generators.select
now returning undefined
values when trying to select beyond the end of an iterator rather than bailing on the selection.create
to fix issues with compiled projectssingleton
for creating singleton objectskviterator
for the use of the every
keyword.map
, filter
, audit
, and reduce
, when operating over an iterator, pass in the row count as the key.drain
function to drain iterators