TinyMUX

Limath()

Functions

Description

FUNCTION: limath(<list>, <op>[, <sep>])

Performs a 64-bit integer list reduction using the specified operator. This generalizes lmath() to the integer domain.

Supported operators: +, -, *, /, %, min, max, band, bor, bxor.

An optional separator may be specified to use a delimiter other than a space.

Examples

> say limath(1 2 3 4, +)

You say, “10”

> say limath(10 3 7, min)

You say, “3”

> say limath(7 3, band)

You say, “1”

lmath(), lband(), lbor(), lbxor()