Skip to content
Jayson Harshbarger edited this page Apr 11, 2016 · 3 revisions

Base Internal Functions

+ (plus)

( x y -> z)

  • list concatenation/function composition
  • boolean or
  • object assign/assoc
  • arithmetic addition
  • string concatenation

- (minus)

( x y -> z)

  • boolean xor
  • arithmetic subtraction

* (times)

( x y -> z)

  • intersparse
  • string join
  • boolean and
  • repeat sequence

/ (forward slash)

( x y -> z)

  • boolean nand
  • string split
  • array/string slice
  • arithmetic division

>>

right shift

( x y -> z)

  • unshift/cons
  • object merge
  • Sign-propagating right shift

<<

Left shift

( x y -> z)

  • push/snoc
  • object merge
  • Left shift

choose

conditional (ternary) operator

( {boolean} [A] [B] -> {A|B} )

@ (at)

returns the item at the specified index in a sequence ( {seq} {index} -> {item} )

i

push the imaginary number 0+1i ( -> 0+1i )

infinity

pushes the value Infinity ( -> Infinity )

cmp

( x y -> z ) pushes 0 if rhs and lhs are equal pushes - if lhs is > rhs pushes -1 otherwise

Clone this wiki locally