-
Notifications
You must be signed in to change notification settings - Fork 12
Index of functions
Here is the list of functions available in lispe:
@ : get value from a container at positions k1..kn
@@: (@@ e i1 (i2)), i2 is optional
acos (val) calculates the arc cosine
acosh (val) calculates the hyperbolic arc cosine
alphap (str) Checks if the string contains only alphabetic characters
andvalue: (andvalue cond1 cond2 value)
asin (val) calculates the sine arc
asinh (val) calculates the hyperbolic sine arc
atan (val) calculates the tangent arc
atanh (val) calculates the hyperbolic arc tangent
atshape: (extracts values in a flat list according to a shape)
bappend: (bappend pathname list_of_shorts)
bernoulli_distribution: Bernoulli distribution
binomial_distribution: binomial distribution
bwrite: (bwrite pathname list_of_shorts)
cauchy_distribution: Cauchy distribution
cbrt (val) calculates the cubic root
check : (check CONDITION I1..In)
chi_squared_distribution: Chi-squared distribution
chr (nb) Returns the Unicode character corresponding to the code 'nb'
chrono: creates a chrono object
command (cmd) Executes a system command and returns the result as a list
cond: (cond (cond1 instructions)...)
consonantp (str) Checks if the string only contains consonants
containerkeys : (containerkeys dict)
containervalues : (containervalues dict)
cos (val) calculates the cosine
cosh (val) calculates the hyperbolic cosine
cosine (val1 val2) cosine similarity
date Initializes a 'date' object
day (date (d -1)) day(int d): returns the day (d = -1) or changes it
deaccentuate (str) Replaces accented letters with their non-accented form
deflib: Internal use of the interpreter
defpat: pattern function definition
defpred: predicate pattern function definition
defprol: à la Prolog pattern function definition
degree (val) converts from radian into degree
dictionary: creates a dictionary indexes on strings
dictionaryi: creates a dictionary indexes on integers
dictionaryn: creates a dictionary indexes on numbers
dictionarytree: creates a dictionary ordered on strings
dictionarytreei: creates a dictionary ordered on integers
dictionarytreen: creates a dictionary ordered on numbers
discrete_distribution: Discrete distribution
digitp (str) Checks if the string contains only digits
droplist: (droplist condition list)
editdistance str strbis Computes the edit distance between 'str' and 'strbis'
erf (val) calculates the error function
erfc (val) calculates the complementary error function
evaljs (JavaScript Interpreter, only available in LispE WASM)
exp (val) returns e high to the requested power
exp2 (val) returns 2 high to the requested power
expm1 (val) returns high e to the requested power minus 1
exponential_distribution: Exponential distribution
extract: (extract e i1 (i2)), i2 is optional
extreme_value_distribution: Extreme Value distribution
f_: same as as in Python f".."
fabs (val) calculates the absolute value of a float
fappend: (append pathname data)
file (path (mode (quote r))) Open a file with 'pathname' and action == 'r|'w|'a
file_close (stream) Close a file
file_eof (stream) Check if a file reached 'end of file'
file_getchar (stream) Read one UTF8 character at a time
file_getstruct (stream o c) Read an embedded structure
file_read (stream (nb -1)) Read the whole file at once or nb characters
file_readline (stream) Read one line from the file
file_readlist (stream) Read the whole file and store each line in a list
file_seek (stream nb (offset 0)) Positions the head at nb
file_tell (stream) Returns the current position in the stream
file_write (stream str) Write a string to a file
fileinfo (path) Returns information about a file
fill c nb Returns a string, which contains the string 'c' 'nb' times
filterlist: (filterlist condition list)
findall : (findall chaine chaine pos)
fish_distribution: Fish distribution (alpha = 1)
fisher_distribution: Fisher F-distribution
floor (val) returns the nearest lower integer
fwrite: (fwrite pathname data)
gamma_distribution: Gamma distribution
gcd v1 v2) Greater Common Diviso
geometric_distribution: Geometric distribution
get_tokenizer_operators (rules), "%o" is associated with a set of operators
get_tokenizer_rules (rules), returns a vector of all rules in memory
getenv (name) Retrieves the value of an environment variable
getstruct (str o c (pos)) Read an embedded structure
hcf v1 v2) Higher Common Factor
heap: (heap comparison v1 v2...)
hour (date (d -1)) hour(int d): returns the time (d = -1) or changes it
iabs (val) calculates the absolute value of an integer
if : (if (predicate) THEN ELSE)
imaginary: imaginary part of a complex number
isdirectory (path) checks if 'path' is a directory
json (element) Returns the element as a JSON string
json_parse (str) Compile a JSON string
json_read (filename) Reads a JSON file
lambda : lambda function definition
left (str nb) Returns the 'n' characters on the left
let : (let ((v1 val1)..(vn valn)) i1..in)
lgamma (val) natural logarithm
lloop (x1 x2 x3...) l1 l2 l3... instructions)
load : (load filename (namespace))
loadcode : (loadcode string (namespace))
log (val) calculates the natural logarithm (in base e)
log10 (val) calculates the logarithmic decimal (base 10)
log1p (val) natural logarithm in base e
log2 (val) calculates the binary logarithm
logb (val) extracts the exponent of a number
lognormal_distribution: Lognormal distribution
loop : (loop var liste instruction1 instruction2...)
loopcount: (loopcount nb instructions)
lower (str) puts in lower case
lowerp (str) Checks if the string is only lowercase
ls (path) returns the contents of a directory
mapcar : (mapcar function list)
maplist : (maplist function list)
mark: (mark l B) marks lists for controlling infinite loops
mask : (mask Bools LTRUE LFALSE)
max : (max a1 a2 a3) / (max '(e1 e2 e3))
middle (str pos nb) Returns the 'n' characters from the 'p' position
min : (min a1 a2 a3) / (min '(e1 e2 e3))
minmax : (minmax a1 a2 a3) / (minmax '(e1 e2 e3))
minute (date (d -1)) minute(int d): returns the minute (d = -1) or changes it
mloop : (mloop (x1 x2 x3...) c1 c2 c3... instructions)
month (date (d -1)) month(int d): returns the month (d = -1) or modifies it
ncheck: (ncheck CONDITION ELSE I1 I2..)
nearbyint (val) returns the nearest integer using the current rounding method
negative_binomial_distribution: Negative binomial distribution
ngrams (str nb)) Builds a lists of ngrams of size n
normal_distribution: Normal distribution
nullp : check if the argument is nil
numberp : check if the argument is a number
ontology (name) Creates an ontology
ontology_absurd (h) Returns the '_absurd' concept for this ontology
ontology_absurdp (conc) Checks if the concept is '_absurd'
ontology_add (conc a) Enriches the concept definition in the ontology with the other concept
ontology_all (h) Returns the list of all concepts
ontology_concept (h name) Returns the concept associated with this name
ontology_contain (large_conc conc) Check if large_conc contains conc
ontology_find (h conc) Checks if a concept list has a name in the ontology
ontology_intersect (conc a) Checks if two concepts have concepts in common
ontology_list (conc) Returns the list of concepts stored in concepts
ontology_ontology (conc) Returns the ontology in which this concept is declared
ontology_remove (conc a) Removes a concept from another concept definition in the ontology
ord (str) Returns the Unicode codes of each character of 'str'
padding str c nb Pads the string str with c string up to nb characters
piecewise_constant_distribution: Piecewise constant distribution
piecewise_linear_distribution: Piecewise linear distribution
poisson_distribution: Poisson distribution
prgx (exp (str)) Creates a posix regular expression from a string
prgx_match (exp str) Checks that 'str' matches the posix regular expression
prgx_replace (exp str rep) Replaces 'str' by 'rep' via a posix regular expression
prgx_split (exp str) Split 'str' via a posix regular expression
printerr : (printerr e1 e2 .. en)
printerrln : (printerrln e1 e2 .. en)
println : (println e1 e2 .. en)
punctuationp (str) Checks if the string contains only punctuation
radian (val) converts from degree into radian
random (nb) returns a random value between 0 and nb
range : (range initial limit step)
rangein : (rangein initial limit step)
real: real part of a complex number
realpath (path) Returns the full path corresponding to a partial path
replace (str fnd rep (index)) Replaces all sub-strings from index (default value is 0
replaceall : (replaceall object search replace)
resetmark: resets marks for controlling infinite loops
rgx (exp (str)) Create a regular expression from a string
rgx_match (exp str) Checks that 'str' matches the regular expression
rgx_replace (exp str rep) Replaces 'str' by 'rep' via a regular expression
rgx_split (exp str) Split 'str' via a regular expression
right (str nb) Returns the last 'n' characters on the right
round (val) returns the nearest integer, following the rounding rules
scanlist : (scanlist action let)
second (date (d -1)) second(int d): returns the second (d = -1) or modifies it
segment (str (point) Splits the string into a list of tokens
segment_e (str (point) same as 'segment' but keeps the blanks
segmenter (keepblanks point), returns the segmenter which is used in instruction segment
set@ : modify container at positions k1...kn
set_tokenizer_operators (rules a_set), modify the set of operators with which "%o" is associated
setdate(y,m,d,H,M,S): Creates a date
setenv (name value) Creates or modifies an environment variable
setrange : modify container between position b e
setshape : (setshape container shape k1...kn value)
shuffle (list) randomly mixes items in a list
sin (val) calculates the sinus
sinh (val) calculates the hyperbolic sinus
socket_connect (hostname port) connect to the server
socket_create (port nblients (hostname)) create a server
socket_get (sock (socketClientId -1)) get one character from a socket
socket_gethostname (sock) return the current host name
socket_getpeername (sock socketClientId) return the current peer name
socket_port (sock) return the current port number
socket_read (sock (socketClientId -1)) read a string on a socket
socket_receive (sock nb (socketClientId -1)) read a string on a socket in a raw environment
socket_send (sock str (socketClientId -1)) write the string s on the socket
socket_settimeout (sock tm) Set a time out of 't' seconds on the socket
socket_wait (sock) wait for a client to connect and returns its socket id
socket_write (sock str (socketClientId -1)) write the string s on the socket
space : (call functions defined in a space)
split (str fnd) Splits the string into sub-strings according to a given string
splite (str fnd) Same as split but keeps the empty strings
sqlite_begin (sqlitev mode) enters commit mode
sqlite_close (sqlitev) close a database
sqlite_commit (sqlitev) Processing SQL commands
sqlite_create (sqlitev table (() args)) create a table
sqlite_execute (sqlitev command) execute a raw sql command
sqlite_insert (sqlitev table (() columns)) insert a line in a table
sqlite_open (sqlitev dbname) open a database
sqlite_process (sqlitev command) process a sql command in a 'loop'
sqlite_run (sqlitev command) execute a sql command
sqrt (val) calculates the square root
startwith: (startwith str fnd)
student_distribution: Student T-Distribution
takelist: (takelist condition list)
tan (val) calculates the tangent
tanh (val) calculates the hyperbolic tangent
tgamma (val) calculates the gamma function
threadclear : clear protected list for threads
threadretrieve : protected list for threads
threadspace : (threadspace...)
threadstore : (threadstore namespace e)
tokenizer (), returns a copy of the main tokenizer
tokenizer_display (rules), display the rules as indented automata
tokenizer_main (), returns the main tokenizer of LispE, which used to tokenize LispE code
transducer ((filename)) create a transducer object
transducer_add: add a dictionary to the automaton
transducer_build: Build a transducer file out of a text file
transducer_compilergx: Compile a regular expression
transducer_factorize (trans) factorize the arcs and states of the automaton.
transducer_flags () Display the edit distance flags
transducer_load (trans filename) Load a transducer
transducer_lookdown: lookdow for the surface form
transducer_lookup: lookup for a word with a threshold and flags
transducer_parse: parse a sentence based on lexicon content
transducer_store: store an automaton
trim (str) Cuts all 'space' characters
trim0 (str) remove '0' at the end of the string
trimleft (str) Trim all 'space' characters to the left
trimright (str) Cuts all 'space' characters to the right
trunc (val) returns the nearest integer whose absolute value is lower
uniform_distribution: Uniform discrete distribution
upperp (str) Checks if the string is only capitalized
uuid : Universally Unique Identifier
vowelp (str) Checks if the string only contains vowels
wait : wait for threads to end
weekday (date) weekday(): returns the day of the week
weibull_distribution: weibull distribution
while : (while (condition) instruction1 instruction2 ...)
whilein : (whilein var lst condition instruction1 instruction2 ...)
xml_child (node) Return the first child node
xml_content (node) Return the node content
xml_line (node) Return the node line number
xml_load (pathname) Load an XML document
xml_name (node) Return the node name
xml_namespace (node) Return the node name space
xml_next (node) Return the next node
xml_nodeid (node) Return the node internal id
xml_parent (node) Return the parent node
xml_parse (buffer) Load an XML document
xml_previous (node) Return the previous node
xml_properties (node) Return the node properties
xml_root (doc) Return the root node of the document
xml_setnodeid (node id) Set an internal numerical value to the current xml node
xml_type (node) Return the node type
year (date (d -1)) year(int d): returns the year (d = -1) or modifies it
yearday (date) yearday(): returns the number of the day in the year
zerop : returns true if value is zero
filter : (filter condition list)
dropwhile : (dropwhile condition list)
replicate : (replicate nb value)
takewhile : (takewhile condition liste)
irange: (irange initial increment)
foldl : (foldl op list initial)
foldr : (foldr op list initial)
scanl : (scanl op liste initial)
scanr : (scanr op list initial)
zipwith : (zipwith op l1 l2 l3...)
Description of these operators in APL