John W Kennedy
unread,Sep 4, 2022, 4:53:28 PM9/4/22You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
On 9/3/22 7:05 AM, Robin Vowels wrote:
> Some interesting built-in functions from the 2022 LRM.
> Some are old, some are new.
>
> BETWEEN
> BETWEEN (X, A, B) is equivalent to the test (a <= x) & (x <= b)
>
> BETWEENEXCLUSIVE
> BETWEENEXCLUSIVE (X, A, B) is equivalent to the test (a = x) & (x = b)
What it says is (a < x) & (x < b). That is also what it says in prose,
and is the sensible meaning of BETWEENEXCLUSIVE in normal mathematical
parlance.
>
> BETWEENLEFTEXCLUSIVE
> BETWEENLEFTEXCLUSIVE (X, A, B) is equivalent to the test (a = x) & (x <= b)
It says (a < x) & (x <= b)
> BETWEENRIGHTEXCLUSIVE
> BETWEENRIGHTEXCLUSIVE (X, A, B) is equivalent to the test (a <= x) & (x = b)
It says (a <= x) & (x < b)
> BINSEARCH
> Performs a binary search on a vector.
>
> BINSEARCHX
> Performs a binary search on a vector, using a user-supplied compare function.
>
> DAYSTOMICROSECONDS
>
> FIXEDBIN
> Converts to FIXED BINARY.
>
> FIXEDDEC
> ConverTs to FIXED DECIMAL.
>
> FLOATBIN
> Converts to FLOAT BINARY.
>
> FLOATDEC
> Converts to FLOAT DECIMAL.
>
> FOLDEDFULLLATCH
> Compares two strings after folding both to lowercase, according to UNICODE full rules.
>
> FOLDEDSIMPLEMATCH
> Compares two strings after folding both to lowercase, according to UNICODE simple rules.
>
> GETSYSWORD
> Gets the requested system information for the specified system name.
>
> ICLZ
> Returns the number of leading zeros of a binary integer.
>
> INARRAY
> Indicates whether the value of an argument is equal to any element of a vector.
>
> INLIST
> Similar to INARRAY.
>
> LOWERASCII
> Converts to lower-case ASCII.
>
> MICROSECS
>
> MICROSECSTODATE
>
> MICROSECSTODAYS
>
> ONHBOUND
> Returns the upper bound of an array when SUBRG is raised.
>
> ONLBOUND
> Returns the lower bound of an array when SUBRG is raised.
>
> ONLINE
> Returns the line number in which a condition was raised.
>
> ONPROCEDURE
> Returns the name of a procedure in which a condition was raised.
>
> ONSUBSCRIPT
> Returns the value of the subscript that caused SUBRG to be raised.
>
> PLIPARSE
> parsed a character string into substrings.
>
> QUICKSORT
> Performs quicksort on a vector.
>
> QUICKSORTX
> Performs quicksort on a vector, using a user-supplied compare function.
>
> REPLACE
> Returns a string with all occurrences of a substring replaced by another substring.
>
> SQUEEZE
> Replaces multiple occurrences of a character with one.
>
> UPPERASCII
> All ASCII characters are replaced with upper case equivalent.
>
> WHEREDIFF
> Compares two buffers. Returns the position of the first byte that differs.
--
John W. Kennedy
Algernon Burbage, Lord Roderick, Father Martin, Bishop Baldwin,
King Pellinore, Captain Bailey, Merlin -- A Kingdom for a Stage!