Intrinsic Functions - craterdog-archives/js-bali-virtual-machine GitHub Wiki
Contents
$addItem($collection, $item)
This function attempts to add the specified item to the specified collection. It returns the updated collection.
- $collection: /bali/abstractions/Collection
- $item: /bali/abstractions/Component
- $result: /bali/abstractions/Collection
$ancestry($component)
This function returns a list of names for the types that the specified component has in its ancestry.
- $component: /bali/interfaces/Reflective
- $result: /bali/collections/List($itemType: /bali/elements/Name)
$and($first, $second)
This function returns the logical conjunction (AND) of the specified logical components. The logical components must be of the same type.
- $first: /bali/libraries/Logical
- $second: /bali/libraries/Logical
- $result: /bali/libraries/Logical
$arccosine($ratio)
This function returns the angle that is the inverse cosine of the specified ratio of sides of a triangle.
- $ratio: /bali/interfaces/Continuous
- $result: /bali/elements/Angle
$arcsine($ratio)
This function returns the angle that is the inverse sine of the specified ratio of sides of a triangle.
- $ratio: /bali/interfaces/Continuous
- $result: /bali/elements/Angle
$arctangent($opposite, $adjacent)
This function returns the angle that is the inverse tangent of the ratio of the specified sides of a triangle.
- $opposite: /bali/interfaces/Continuous
- $adjacent: /bali/interfaces/Continuous
- $result: /bali/elements/Angle
$areEqual($first, $second)
This function determines whether or not the specified components are equal to each other.
- $first: /bali/interfaces/Comparable
- $component: /bali/interfaces/Comparable
- $result: /bali/elements/Boolean
$areSame($first, $second)
This function determines whether or not the specified components are actually the same component.
- $first: /bali/interfaces/Comparable
- $component: /bali/interfaces/Comparable
- $result: /bali/elements/Boolean
$association($key, $value)
This function returns a new association between the specified key and value.
- $key: /bali/abstractions/Element
- $value: /bali/abstractions/Component
- $result: /bali/collections/Association
$attribute($composite, $key)
This function returns the attribute value associated with the specified key from the specified composite component.
- $composite: /bali/interfaces/Composite
- $key: /bali/abstractions/Element
- $result: /bali/abstractions/Component
$authority($resource)
This function returns as text the authority part of the specified resource.
- $resource: /bali/elements/Resource
- $result: /bali/elements/Text
$base02($binary, [$indentation])
This function returns as text a base 2 encoding of the specified binary string prepending the specified indentation to each line.
- $binary: /bali/elements/Binary
- $indentation: /bali/interfaces/Discrete($range:
0..10
) - $result: /bali/elements/Text
$base16($binary, [$indentation])
This function returns as text a base 16 encoding of the specified binary string prepending the specified indentation to each line.
- $binary: /bali/elements/Binary
- $indentation: /bali/interfaces/Discrete($range:
0..10
) - $result: /bali/elements/Text
$base32($binary, [$indentation])
This function returns as text a base 32 encoding of the specified binary string prepending the specified indentation to each line.
- $binary: /bali/elements/Binary
- $indentation: /bali/interfaces/Discrete($range:
0..10
) - $result: /bali/elements/Text
$base64($binary, [$indentation])
This function returns as text a base 64 encoding of the specified binary string prepending the specified indentation to each line.
- $binary: /bali/elements/Binary
- $indentation: /bali/interfaces/Discrete($range:
0..10
) - $result: /bali/elements/Text
$binary($size, [$parameters])
This function returns a new binary string composed of the specified number of random bytes and parameterized using the specified parameters.
- $size: /bali/interfaces/Discrete($range:
1..1024
) - $parameters: /bali/collections/Catalog
- $result: /bali/elements/Binary
$bytes($tag)
This function returns a binary string containing the bytes that make up the specified tag.
- $tag: /bali/elements/Tag
- $result: /bali/elements/Binary
$catalog([$parameters])
This function returns a new empty catalog parameterized using the specified parameters.
- $parameters: /bali/collections/Catalog
- $result: /bali/collections/Catalog
$chain($first, $second)
This function returns a new chainable component that is the result of appending the second specified chainable component to the first specified chainable component. Both components must be of the same type.
- $first: /bali/libraries/Chainable
- $second: /bali/libraries/Chainable
- $result: /bali/libraries/Chainable
$citation($document)
This function returns a citation to the specified document.
- $document: /bali/collections/Catalog
- $result: /bali/collections/Catalog($type:
/bali/notary/Citation
)
$code($procedure)
This function returns the statement tree structure that define the specified procedure.
- $procedure: /bali/trees/Procedure
- $result: /bali/trees/Node
$coinToss($weight)
This function returns the results of a random coin toss where the coin is weighted with the specified probability.
- $weight: /bali/elements/Probability
- $result: /bali/elements/Boolean
$comparator()
This function returns a canonical comparator agent that can be used to rank components in their natural order.
- $result: /bali/abstractions/Comparator
$complement($angle)
This function returns an angle component that is the complement of the specified angle component. The
complementary angle adds to the specified angle to equal π/2
.
- $angle: /bali/elements/Angle
- $result: /bali/elements/Angle
$component($source)
This function returns the component defined by the specified source text.
- $source: /bali/elements/Text($mediaType:
"application/bali"
) - $result: /bali/abstractions/Component
$conjugate($number)
This function returns the complex conjugate of the specified complex number.
- $number: /bali/elements/Number
- $result: /bali/elements/Number
$connector($range)
This function returns the endpoint inclusion connector text string for the specified range.
- $range: /bali/collection/Range
- $result: /bali/strings/Text
$cosine($angle)
This function returns a number that is the ratio of the adjacent side to the hypotenuse of a right triangle with the specified angle component.
- $angle: /bali/elements/Angle
- $result: /bali/interfaces/Continuous
$day($moment)
This function returns a number representing the day part of the specified moment.
- $moment: /bali/elements/Moment
- $result: /bali/interfaces/Discrete($range:
1..31
)
$days($duration)
This function returns the number of days in the specified duration.
- $duration: /bali/elements/Duration
- $result: /bali/interfaces/Discrete
$default($component, $value)
This function returns the specified component if its boolean representation is true
and
the specified (default) value if it is false
.
- $component: /bali/abstractions/Component
- $value: /bali/abstractions/Component
- $result: /bali/abstractions/Component
$degrees($angle)
This function returns the number of degrees that is represented by the specified angle.
- $angle: /bali/elements/Angle
- $result: /bali/interfaces/Continuous($range:
-180..180
)
$difference($first, $second)
This function returns the difference between the two specified scalables. Both scalables must be of the same type.
- $first: /bali/libraries/Scalable
- $second: /bali/libraries/Scalable
- $result: /bali/libraries/Scalable
$document($component)
This function returns a text document representation of the specified component.
- $component: /bali/abstractions/Component
- $result: /bali/elements/Text($mediaType:
"application/bali"
)
$doesMatch($component, $pattern)
This function determines whether or not the specified component matches the specified pattern.
- $component: /bali/abstractions/Component
- $pattern: /bali/abstractions/Component
- $result: /bali/elements/Boolean
$duplicate($component)
This function returns an exact copy of the specified component.
- $component: /bali/abstractions/Component
- $result: /bali/abstractions/Component
$duration($first, $second)
This function returns the duration of time between the first specified moment and the last specified moment.
- $first: /bali/elements/Moment
- $second: /bali/elements/Moment
- $result: /bali/elements/Duration
$earlier($moment, $duration)
This function returns the moment in time that is earlier than the specified moment in time by the specified duration of time.
- $moment: /bali/elements/Moment
- $duration: /bali/elements/Duration
- $result: /bali/elements/Moment
$effective($range)
This function the effective range of integers for the specified range.
- $range: /bali/collections/Range
- $result: /bali/collections/Range
$emptyCollection($collection)
This function removes all items from the specified collection. It returns the updated collection.
- $collection: /bali/abstractions/Collection
- $result: /bali/abstractions/Collection
$exponential($base, $exponent)
This function returns the number which is the specified base number raised to the specified exponent.
- $base: /bali/elements/Number
- $exponent: /bali/elements/Number
- $result: /bali/elements/Number
$factorial($number)
This function returns the number that is the factorial of the specified number.
- $number: /bali/elements/Number
- $result: /bali/elements/Number
$first($range)
This function returns the first number in the specified range, or none
if it does not exist.
- $range: /bali/elements/Range
- $result: /bali/abstractions/Component
$format($moment)
This function returns the text defining the ISO 8601 standard format of the specified moment.
- $moment: /bali/elements/Moment
- $result: /bali/elements/Text($mediaType: '"application/iso8601"`)
$fragment($resource)
This function returns as text the fragment part of the specified resource.
- $resource: /bali/elements/Resource
- $result: /bali/elements/Text
$hash($component)
This function returns a number in the range -2147483648..2147483647 for the specified component that is statistically spread evenly over the that range depending on the value of the component.
- $component: /bali/abstractions/Component
- $result: /bali/interfaces/Discrete($range:
-2147483648..2147483647
)
$hasNext($iterator)
This function determines whether or not the specified iterator has another item after the current slot.
- $iterator: /bali/abstractions/Iterator
- $result: /bali/elements/Boolean
$hasPrevious($iterator)
This function determines whether or not the specified iterator has another item before the current slot.
- $iterator: /bali/abstractions/Iterator
- $result: /bali/elements/Boolean
$head($queue)
This function returns the item that is currently at the head of the specified queue.
- $queue: /bali/collections/Queue
- $result: /bali/abstractions/Component
$hour($moment)
This function returns a number representing the hour part of the specified moment.
- $moment: /bali/elements/Moment
- $result: /bali/interfaces/Discrete($range:
0..23
)
$hours($duration)
This function returns the number of hours in the specified duration.
- $duration: /bali/elements/Duration
- $result: /bali/interfaces/Discrete
$html($component, $style)
This function returns an HTML representation of the specified component using the specified style sheet for formatting.
- $component: /bali/abstractions/Component
- $style: /bali/elements/Resource
- $result: /bali/elements/Text($mediaType:
"text/html"
)
$imaginary($number)
This function returns the imaginary part of the specified complex number.
- $number: /bali/elements/Number
- $result: /bali/libraries/Numerical
$insertItem($list, $slot, $item)
This function inserts the specified item into the specified list in the specified slot. It returns the updated list.
- $list: /bali/collections/List
- $slot: /bali/interfaces/Discrete
- $item: /bali/abstractions/Component
- $result: /bali/collections/List
$insertItems($list, $slot, $item)
This function inserts the specified sequence of items into the specified list in the specified slot. It returns the updated list.
- $list: /bali/collections/List
- $slot: /bali/interfaces/Discrete
- $item: /bali/abstractions/Component
- $result: /bali/collections/List
$integer($discrete)
This function returns the value of a discrete component as an integer number.
- $discrete: /bali/interfaces/Discrete
- $result: /bali/interfaces/Discrete
$interfaces($component)
This function returns a list of the names of the interfaces supported by the type of the specified component.
- $component: /bali/abstractions/Component
- $result: /bali/collections/List($itemType: /bali/elements/Name)
$inverse($scalable)
This function returns the inverse of the specified scalable component.
- $scalable: /bali/libraries/Scalable
- $result: /bali/libraries/Scalable
$isEnumerable($range)
This function determines whether or not the specified ranges is an enumerable range of integers.
- $range: /bali/collections/Range
- $result: /bali/elements/Boolean
$isLess($first, $second)
This function determines whether or not the value of the first specified component is less than the value of the second specified component.
- $first: /bali/interfaces/Comparable
- $second: /bali/interfaces/Comparable
- $result: /bali/elements/Boolean
$isMore($first, $second)
This function determines whether or not the value of the first specified component is more than the value of the second specified component.
- $first: /bali/interfaces/Comparable
- $second: /bali/interfaces/Comparable
- $result: /bali/elements/Boolean
$isNegative($polarized)
This function determines whether or not the specified polarized component has a negative numerical value.
- $polarized: /bali/interfaces/Polararized
- $result: /bali/elements/Boolean
$isSignificant($component)
This function determines whether or not the specified component has an interesting value. Values
that are not considered interesting include none
, false
, ""
, ''
, [ ]
, [:]
, 0
, 0%
, ~0
,
~P0D
and probabilities that are less than .5
.
- $component: /bali/abstractions/Component
- $result: /bali/elements/Boolean
$item($sequential, $index)
This function returns the item that is at the specified index in the specified sequence.
- $sequential: /bali/interfaces/Sequential
- $index: /bali/interfaces/Discrete
- $result: /bali/abstractions/Component
$iterator($sequential)
This function returns an iterator for the specified sequence.
- $sequential: /bali/interfaces/Sequential
- $result: /bali/abstractions/Iterator
$key($association)
This function returns the key for the specified association.
- $association: /bali/collections/Association
- $result: /bali/abstractions/Element
$keys($catalog)
This function returns the list of keys for the specified catalog.
- $catalog: /bali/collection/Catalog
- $result: /bali/collection/List
$last($range)
This function returns the last number in the specified range, or none
if it does not exist.
- $range: /bali/elements/Range
- $result: /bali/abstractions/Component
$later($moment, $duration)
This function returns the moment in time that is later than the specified moment in time by the specified duration of time.
- $moment: /bali/elements/Moment
- $duration: /bali/elements/Duration
- $result: /bali/elements/Moment
$levels($version)
This function returns a list of numbers corresponding to the version levels for the specified version string.
- $version: /bali/elements/Version
- $result: /bali/collections/List($itemType: /bali/interfaces/Discrete)
$list([$parameters])
This function returns a new empty list parameterized using the specified parameters.
- $parameters: /bali/collections/Catalog
- $result: /bali/collections/List
$logarithm($base, $value)
This function returns the number which is the logarithm for the specified base number of the specified number value.
- $base: /bali/elements/Number
- $value: /bali/elements/Number
- $result: /bali/elements/Number
$magnitude($number)
This function returns the magnitude of the specified complex number.
- $number: /bali/elements/Number
- $result: /bali/libraries/Numerical
$matchesText($pattern, $text)
This function determines whether or not the specified pattern matches the specified text string.
- $pattern: /bali/elements/Pattern
- $text: /bali/strings/Text
- $result: /bali/elements/Boolean
$millisecond($moment)
This function returns a number representing the millisecond part of the specified moment.
- $moment: /bali/elements/Moment
- $result: /bali/interfaces/Discrete($range:
0..999
)
$milliseconds($duration)
This function returns the number of milliseconds in the specified duration.
- $duration: /bali/elements/Duration
- $result: /bali/interfaces/Discrete
$minute($moment)
This function returns a number representing the minute part of the specified moment.
- $moment: /bali/elements/Moment
- $result: /bali/interfaces/Discrete($range:
0..59
)
$minutes($duration)
This function returns the number of minutes in the specified duration.
- $duration: /bali/elements/Duration
- $result: /bali/interfaces/Discrete
$month($moment)
This function returns a number representing the month part of the specified moment.
- $moment: /bali/elements/Moment
- $result: /bali/interfaces/Discrete($range:
1..12
)
$months($duration)
This function returns the number of months in the specified duration.
- $duration: /bali/elements/Duration
- $result: /bali/interfaces/Discrete
$nextItem($iterator)
This function returns the item following the current slot position for the specified iterator.
- $iterator: /bali/abstractions/Iterator
- $result: /bali/abstractions/Component
$nextVersion($version, [$level])
This function returns the next version string for the specified version string incremented at the specified level.
- $version: /bali/elements/Version
- $level: /bali/interfaces/Discrete($range:
0..
) - $result: /bali/elements/Version
$node($type)
This function returns a new empty node component of the specified type name.
- $type: /bali/elements/Name
- $result: /bali/trees/Node
$not($logical)
This function returns the logical inverse (NOT) of the specified logical component.
- $logical: /bali/libraries/Logical
- $result: /bali/libraries/Logical
$now()
This function returns the current moment in time.
- $result: /bali/elements/Moment
$or($first, $second)
This function returns the logical disjunction (OR) of the specified logical components. The logical components must be of the same type.
- $first: /bali/libraries/Logical
- $second: /bali/libraries/Logical
- $result: /bali/libraries/Logical
$parameters($component)
This function returns the catalog of parameters associated with the specified component.
- $component: /bali/abstractions/Component
- $result: /bali/collections/Catalog
$path($resource)
This function returns as text the path part of the specified resource.
- $resource: /bali/elements/Resource
- $result: /bali/elements/Text
$phase($number)
This function returns the phase angle of the specified complex number.
- $number: /bali/elements/Number
- $result: /bali/elements/Angle
$previousItem($iterator)
This function returns the item preceding the current slot position for the specified iterator.
- $iterator: /bali/abstractions/Iterator
- $result: /bali/abstractions/Component
$procedure($code, [$parameters])
This function returns a new procedure component containing the specified code and parameterized using the specified parameters.
- $code: /bali/trees/Code
- $parameters: /bali/collections/Catalog
- $result: /bali/trees/Procedure
$product($first, $second)
This function returns a number that is the product of the first specified number and the second specified number.
- $first: /bali/elements/Number
- $second: /bali/elements/Number
- $result: /bali/elements/Number
$query($resource)
This function returns as text the query part of the specified resource.
- $resource: /bali/elements/Resource
- $result: /bali/elements/Text
$queue([$parameters])
This function returns a new empty queue parameterized using the specified parameters.
- $parameters: /bali/collections/Catalog
- $result: /bali/collections/Queue
$quotient($first, $second)
This function returns a number that is the quotient of the first specified number and the second specified number.
- $first: /bali/elements/Number
- $second: /bali/elements/Number
- $result: /bali/elements/Number
$radians($angle)
This function returns the number of radians that is represented by the specified angle.
- $angle: /bali/elements/Angle
- $result: /bali/interfaces/Continuous($range:
-π..π
)
$random()
This function returns a new random probability in the range from 0
(false
) to 1
(true
).
- $result: /bali/elements/Probability
$range([$first], [$last], [$parameters])
This function returns a range element defined by the specified first and last numbers and parameterized by the specified parameters.
- $first: /bali/abstractions/Element
- $last: /bali/abstractions/Element
- $parameters: /bali/collections/Catalog
- $result: /bali/elements/Range
$ranking($first, $second)
This function returns the relative ranking of the specified components using a canonical comparator.
- $first: /bali/abstractions/Component
- $second: /bali/abstractions/Component
- $result: /bali/libraries/Numerical
$real($numerical)
This function returns the value of a numerical component as a real number.
- $numerical: /bali/libraries/Numerical
- $result: /bali/libraries/Numerical
$reciprocal($number)
This function returns the number that is the reciprocal of the specified number.
- $number: /bali/elements/Number
- $result: /bali/elements/Number
$remainder($first, $second)
This function returns a number that is the remainder of the quotient of the first specified number and the second specified number.
- $first: /bali/elements/Number
- $second: /bali/elements/Number
- $result: /bali/elements/Number
$removeAttribute($catalog, $key)
This function removes from the specified catalog the value associated with the specified key. The updated catalog is returned.
- $catalog: /bali/collections/Catalog
- $key: /bali/abstractions/Element
- $result: /bali/collections/Catalog
$removeHead($queue)
This function removes from the specified queue the head item and returns it.
- $queue: /bali/collections/Queue
- $result: /bali/abstractions/Component
$removeIndex($list, $index)
This function removes from the specified list the item at the specified index. The removed item is returned.
- $list: /bali/collections/List
- $index: /bali/interfaces/Discrete
- $result: /bali/collections/List
$removeIndices($list, $indices)
This function removes from the specified list the items at the specified indices. The indices must be in increasing order or the results are unpredictable. A list of the removed items is returned.
- $list: /bali/collections/List
- $indices: /bali/interfaces/Sequential($itemType: /bali/interfaces/Discrete
- $result: /bali/collections/List
$removeItem($set, $item)
This function removes from the specified set the specified item. The updated set is returned.
- $set: /bali/collections/Set
- $item: /bali/abstractions/Component
- $result: /bali/collections/Set
$removeTop($stack)
This function removes from the specified stack the top item and returns it.
- $stack: /bali/collections/Stack
- $result: /bali/abstractions/Component
$reverseItems($sortable)
This function reverses the order of the items in the specified sortable collection. The updated sortable collection is returned.
- $sortable: /bali/interfaces/Sortable
- $result: /bali/interfaces/Sortable
$sans($first, $second)
This function returns the logical material nonimplication (SANS) of the specified logical components. The logical components must be of the same type.
- $first: /bali/libraries/Logical
- $second: /bali/libraries/Logical
- $result: /bali/libraries/Logical
$scaled($scalable, $factor)
This function returns the specified scalable component multiplied by the specified factor.
- $scalable: /bali/libraries/Scalable
- $factor: /bali/libraries/Numerical
- $result: /bali/libraries/Scalable
$scheme($resource)
This function returns as text the scheme part of the specified resource.
- $resource: /bali/elements/Resource
- $result: /bali/elements/Text
$second($moment)
This function returns a number representing the second part of the specified moment.
- $moment: /bali/elements/Moment
- $result: /bali/interfaces/Discrete($range:
0..60
) Note: this allows for a leap second to be added.
$seconds($duration)
This function returns the number of seconds in the specified duration.
- $duration: /bali/elements/Duration
- $result: /bali/interfaces/Discrete
$set([$parameters])
This function returns a new empty set parameterized using the specified parameters.
- $parameters: /bali/collections/Catalog
- $result: /bali/collections/Set
$setAttribute($composite, $key, $value)
This function sets the specified attribute in the specified composite component to the specified value. The updated composite component is returned.
- $composite: /bali/interfaces/Composite
- $key: /bali/abstractions/Element
- $value: /bali/abstractions/Component
- $result: /bali/interfaces/Composite
$setFirst($range, $value)
This function sets the first value of the specified range to the specified value. The updated range is returned.
- $range: /bali/collections/Range
- $value: /bali/abstractions/Component
- $result: /bali/collections/Range
$setItem($list, $index, $item)
This function sets the value at the specified index in the specified list to the specified item. The updated list is returned.
- $list: /bali/collections/List
- $index: /bali/interfaces/Discrete
- $item: /bali/abstractions/Component
- $result: /bali/collections/List
$setLast($range, $value)
This function sets the last value of the specified range to the specified value. The updated range is returned.
- $range: /bali/collections/Range
- $value: /bali/abstractions/Component
- $result: /bali/collections/Range
$setParameter($component, $key, $value)
This function sets the specified parameter in the specified component to the specified value. The updated component is returned.
- $component: /bali/abstractions/Component
- $key: /bali/abstractions/Element
- $value: /bali/abstractions/Component
- $result: /bali/abstractions/Component
$setValue($association, $value)
This function sets the value of the specified association to the specified value. The updated association is returned.
- $association: /bali/collections/Association
- $value: /bali/abstractions/Component
- $result: /bali/collections/Association
$shuffleItems($list)
This function randomly shuffles the order of the items in the specified list. The updated list is returned.
- $list: /bali/collections/List
- $result: /bali/collections/List
$sine($angle)
This function returns a number that is the ratio of the opposite side to the hypotenuse of a right triangle with the specified angle component.
- $angle: /bali/elements/Angle
- $result: /bali/interfaces/Continuous
$size($sequential)
This function returns the number of items that are in the specified sequence.
- $sequential: /bali/interfaces/Sequential
- $result: /bali/interfaces/Discrete($range:
0..
)
$sortItems($sortable)
This function places the items in the specified sortable collection in their natural order. The updated sortable collection is returned.
- $sortable: /bali/interfaces/Sortable
- $result: /bali/interfaces/Sortable
$sorter([$comparator])
This function returns a merge sorter agent that can be used to sort the items in a sortable collection using the specified comparator agent.
- $comparator: /bali/abstractions/Comparator
- $result: /bali/abstractions/Sorter
$source($component, [$indentation])
This function returns a text narrative representation of the specified component prepending the specified indentation to each line.
- $component: /bali/abstractions/Component
- $indentation: /bali/interfaces/Discrete($range:
[0..10]
) - $result: /bali/elements/Text($mediaType:
"application/bali"
)
$stack([$parameters])
This function returns a new empty stack parameterized using the specified parameters.
- $parameters: /bali/collections/Catalog
- $result: /bali/collections/Stack
$sum($first, $second)
This function returns the sum of the two specified scalables. Both scalables must be of the same type.
- $first: /bali/libraries/Scalable
- $second: /bali/libraries/Scalable
- $result: /bali/libraries/Scalable
$supplement($angle)
This function returns an angle component that is the supplement of the specified angle component. The
supplementary angle adds to the specified angle to equal π
.
- $angle: /bali/elements/Angle
- $result: /bali/elements/Angle
$tag([$size])
This function returns a new random tag with the specified number of bytes.
- $size: /bali/interfaces/Discrete($range:
1..64
) - $result: /bali/elements/Tag
$tangent($angle)
This function returns a number that is the ratio of the opposite side to the adjacent side of a right triangle with the specified angle component.
- $angle: /bali/elements/Angle
- $result: /bali/interfaces/Continuous
$toEnd($iterator)
This function moves the specified iterator to the slot that is just past the last item in the sequence being iterated over.
- $iterator: /bali/abstractions/Iterator
- $result: /bali/abstractions/Iterator
$top($stack)
This function returns the item that is currently on top of the specified stack. The stack is not affected.
- $stack: /bali/collections/Stack
- $result: /bali/abstractions/Component
$toSlot($iterator, $slot)
This function moves the specified iterator to the specified slot in the sequence being iterated over.
- $iterator: /bali/abstractions/Iterator
- $slot: /bali/interfaces/Discrete($range:
0..
) - $result: /bali/abstractions/Iterator
$toStart($iterator)
This function moves the specified iterator to the slot that is just before the first item in the sequence being iterated over.
- $iterator: /bali/abstractions/Iterator
- $result: /bali/abstractions/Iterator
$value($association)
This function returns the value for the specified association.
- $association: /bali/collections/Association
- $result: /bali/abstractions/Component
$weeks($duration)
This function returns the number of weeks in the specified duration.
- $duration: /bali/elements/Duration
- $result: /bali/interfaces/Discrete
$xor($first, $second)
This function returns the logical exclusive disjunction (XOR) of the specified logical components. The logical components must be of the same type.
- $first: /bali/libraries/Logical
- $second: /bali/libraries/Logical
- $result: /bali/libraries/Logical
$year($moment)
This function returns a number representing the year part of the specified moment.
- $moment: /bali/elements/Moment
- $result: /bali/interfaces/Discrete
$years($duration)
This function returns the number of years in the specified duration.
- $duration: /bali/elements/Duration
- $result: /bali/interfaces/Discrete