Basic Functions

Function Argument(s) -> Result(s)
flex_add, flex_sub (vec,vec->vec)
convolve (vec,vec->vec)
stack_rows ([vec]->mat)
error (*,...->*)
int_format (int->string)
to_string (*,...->string)
print (T->T)
prints (*,...->)
ascii (string->int)
ascii (int->string)
null (int->vec)
null (int,int->mat)

flex

flex_add and flex_sub are variants of +, - adding/removing trailing 0’s.

convolve

convolve produce convolution product of vectors, removing trailing 0’s.

stack_rows

stack_rows combine ragged rows into matrix, zero-extend shorts.

error

error print values and abort computation; report a runtime error.

int_format

(int->string): representation of integer as digit string.

to_string

(*,...->string): string representation of arguments (concatenated).

print

(T->T): print value, followed by newline; return same value.

prints

(*,...->): print values raw (no quotes or commas) followed by newline.

ascii

(string->int): ASCII code of initial character, or -1 if string empty

ascii

(int->string): string of length 1 with given ASCII code (if safe value).

null

(int->vec): null vector of given length.

null

(int,int->mat): null matrix with given number of rows and columns.