Function documentation via REPL
Posted: Mon Oct 22, 2012 7:52 am
Is it possible to see the documentation for a builtin function (within MAIN context) via the REPL?
Friends and Fans of newLISP
http://www.newlispfanclub.alh.net/forum/
http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=4192
Code: Select all
> (primitives "ap")
(append append-file apply)
> (primitives "file")
(file-info file?)
Code: Select all
> (primitives {file$} true)
(append-file copy-file delete-file read-file rename-file write-file)
> (primitives {\?$} true)
(NaN? array? atom? context? directory? empty? even? file? float? global? inf? integer?
lambda? legal? list? macro? nil? null? number? odd? primitive? protected? quote?
string? symbol? true? zero?)
Code: Select all
> (syntax 'struct)
struct
syntax: (struct symbol [str-data-type ... ])
""
> (syntax 'command-event true)
command-event
syntax: (command-event sym-event-handler | func-event-handler)
Specifies a user defined function for pre-processing the newLISP command-line
before it gets evaluated. This can be used to write customized interactive
newLISP shells and to transform HTTP requests when running in server mode.
""
Code: Select all
> replace
replace !
syntax: (replace exp-key list exp-replacement [func-compare])
syntax: (replace exp list)
syntax: (replace str-key str-data exp-replacement)
syntax: (replace str-pattern str-data exp-replacement int-regex-option)
>
Code: Select all
> char
char utf8
syntax: (char str [int-index [true]])
syntax: (char int)
> (syntax:set-flag true)
true
> char
char utf8
syntax: (char str [int-index [true]])
syntax: (char int)
Given a string argument, extracts the character at int-index from str,
returning either the ASCII value of that character or the Unicode value on UTF-8
enabled
versions of newLISP.
>
or enter whatever other search term you want.search site:http://newlispfanclub.alh.net/forum/