Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve lisp docs #639

Merged
merged 2 commits into from
Jun 11, 2024
Merged

Improve lisp docs #639

merged 2 commits into from
Jun 11, 2024

Conversation

vinc
Copy link
Owner

@vinc vinc commented Jun 10, 2024

No description provided.

@vinc
Copy link
Owner Author

vinc commented Jun 10, 2024

> lisp /tmp/lisp/doc.lsp
(% args)
(* args)
(+ args)
(- args)
(/ args)
(< args)
(<< args)
(<= args)
(= args)
(> args)
(>= args)
(>> args)
(^ args)
(abs x) # Returns the absolute value of the number
(acos args)
(and x y)
(append path text) # Appends text to file
(append-binary path data) # Appends binary to file
(asin args)
(atan args)
(bin->num args)
(bin->str args)
(binary->number args)
(binary->string args)
(bool? x)
(boolean? x)
(ceil x) # Returns the smallest integer greater than or equal to the number
(chars text) # Splits the text into a list of chars
(chunks args)
(concat args)
(contains? args)
(cos args)
(date args)
(def args)
(def-fun args)
(def-mac args)
(dict args)
(empty? x)
(eq? args)
(file/close args)
(file/exists? args)
(file/open args)
(file/read args)
(file/size args)
(file/write args)
(filter f ls) # Filters the elements of the list with the function
(first ls) # Returns the first element of the list
(floor x) # Returns the largest integer less than or equal to the number
(fun args)
(fun? x)
(function? x)
(get args)
(help args)
(host args)
(intersection a b) # Returns the elements found in both lists
(last ls) # Returns the last element of the list
(len args)
(length args)
(let params values body)
(lines text) # Splits the text into a list of lines
(list args)
(list? x)
(mac args)
(mac? x)
(macro? x)
(map f ls) # Applies the function to the elements of the list
(max ls) # Returns the maximum element of the list
(min ls) # Returns the minimum element of the list
(mod a b) # Returns the remainder of the division
(nil? x)
(not x)
(num->bin args)
(num->str args)
(num/type args)
(num? x)
(number->binary args)
(number->string args)
(number/type args)
(number? x)
(or x y)
(p exp) # Prints expression to the console
(parse args)
(print exp) # Prints expression to the console with a newline
(print-doc f)
(push ls x) # Pushes the element to the end of the list
(put args)
(range start stop) # Returns a list of numbers from start to stop excluded
(read path) # Reads text file
(read-binary path) # Reads binary file
(read-char) # Reads char from the console
(read-line) # Reads line from the console
(realtime) # Returns the current value of the realtime clock
(reduce f ls) # Reduces the elements of the list with the function
(regex/find args)
(regex/match? r s) # Returns true if the string match the pattern
(reject f ls) # Rejects the elements of the list with the function
(rem args)
(rest args)
(rev ls) # Reverses the list
(reverse ls) # Reverses the list
(round x) # Returns the nearest integer to the number
(second ls) # Returns the second element of the list
(sh args)
(shell args)
(sin args)
(slice args)
(socket/accept args)
(socket/connect args)
(socket/listen args)
(sort args)
(str args)
(str->bin args)
(str->num args)
(str/join ls s) # Joins the elements of the list with the string
(str/split args)
(str/trim args)
(str? x)
(string args)
(string->binary args)
(string->number args)
(string/join ls s) # Joins the elements of the list with the string
(string/split args)
(string/trim args)
(string? x)
(sym? x)
(symbol? x)
(tan args)
(third ls) # Returns the third element of the list
(trunc args)
(type args)
(uniq args)
(unique args)
(uptime) # Returns the current value of the uptime clock
(var args)
(words text) # Splits the text into a list of words
(write path text) # Writes text to file
(write-binary path data) # Writes binary to file

@vinc vinc marked this pull request as ready for review June 11, 2024 11:57
@vinc vinc merged commit c0cb186 into trunk Jun 11, 2024
1 check passed
@vinc vinc deleted the feature/lisp-doc branch June 11, 2024 11:57
@vinc vinc mentioned this pull request Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant