clojush.instructions.numbers

adder

(adder type)

Returns a function that pushes the sum of the top two items.

comparer

(comparer type comparator)

Returns a function that pushes the result of comparator of the top two items on the ‘type’ stack onto the boolean stack.

divider

(divider type)

Returns a function that pushes the quotient of the top two items. Does nothing if the denominator would be zero.

maxer

(maxer type)

Returns a function that pushes the maximum of the top two items.

minner

(minner type)

Returns a function that pushes the minimum of the top two items.

modder

(modder type)

Returns a function that pushes the modulus of the top two items. Does nothing if the denominator would be zero.

multiplier

(multiplier type)

Returns a function that pushes the product of the top two items.

subtracter

(subtracter type)

Returns a function that pushes the difference of the top two items.