Interval Index: Difference between revisions

Jump to navigation Jump to search
1 byte added ,  01:05, 13 January 2020
m
mNo edit summary
Line 48: Line 48:
Like [[Index Of]], Interval Index splits its right argument into [[cell]]s with the same rank as the [[major cell]]s of the left argument (in [[Dyalog APL]], a [[scalar]] left argument is not allowed; in other languages it is treated as a list of a single scalar major cell). One scalar value is returned for each cell. In all current implementations, the cell shapes of left and right arguments must match; otherwise, a [[LENGTH ERROR]] is given. In [[A+]] and [[J]], arguments are also required to have the same type ([[character]], [[numeric]], or [[box]]ed).
Like [[Index Of]], Interval Index splits its right argument into [[cell]]s with the same rank as the [[major cell]]s of the left argument (in [[Dyalog APL]], a [[scalar]] left argument is not allowed; in other languages it is treated as a list of a single scalar major cell). One scalar value is returned for each cell. In all current implementations, the cell shapes of left and right arguments must match; otherwise, a [[LENGTH ERROR]] is given. In [[A+]] and [[J]], arguments are also required to have the same type ([[character]], [[numeric]], or [[box]]ed).


Interval Index uses [[array ordering]] to order cells. Note that array ordering is always defined in terms of intolerant comparison, so that Interval Index does not depend on [[comparison tolerance]]. An cell which comes before another cell in this ordering is said to precede it. If the cells do not intolerantly [[match]] then the first strictly precedes the second.
Interval Index uses [[array ordering]] to order cells. Note that array ordering is always defined in terms of intolerant comparison, so that Interval Index does not depend on [[comparison tolerance]]. Any cell which comes before another cell in this ordering is said to precede it. If the cells do not intolerantly [[match]] then the first strictly precedes the second.


There are two major ways to define the value corresponding to a single cell:
There are two major ways to define the value corresponding to a single cell:

Navigation menu