In
newlisp_index.html,
plese add "
explode" to "
List processing, flow control and integer arithmetic".
And,
pretty-print
(pretty-print 90 "\t") →
(90 "\t")
(pretty-print 90 "\t") →
(90 "\t" "%1.10g")
(pretty-print 100) →
(100 "\t")
(pretty-print 100) →
(100 "\t" "%1.10g")
The first example reports the default settings of 80 for the maximum line length and a
TAB character for indenting.
The first example reports the default settings of 80 for the maximum line length and a
space character for indenting.
The second example changes the line length to 90 and the indent to a TAB character.
Isn't the second example necessary ?
print
\xhh where hh is a hexadecimal ASCII code between 00 and FF
Unless undocumented, I hope to add this or a more appropriate representation.
pv
The future value
num-pmt is assumed to be 0.0 if omitted. If payment is at the end of the period,
The future value
num-fv is assumed to be 0.0 if omitted. If payment is at the end of the period,
read-expr
read-expr parses the first expressions it finds in str-source and
an returns the translated expression without evaluating it.
read-expr parses the first expressions it finds in str-source and returns the translated expression without evaluating it.
Maybe.
read-utf8
The fucntion returns
and integer value which can be converted to a displayable UTF-8 character string using the char function.
The fucntion returns integer value which can be converted to a displayable UTF-8 character string using the char function.
Maybe.
ref
By default, ref checks if expressions are equal. With func-compare, more complex comparison functions can be defined.
The comparison function can be a previously defined function.
Note that the comparison function always takes two arguments,
even if only the second argument is used
inside the function.
From ref-all.
Aren't these necessary ?
ref-all
(as in the example using
long?).
(as in the example using
is-long?).
send
This way the non-blocking message function can be made blocking until it succeeds:
This way
, the non-blocking message function can be made blocking until it succeeds:
Maybe.
After sending the three messages the statement:
After sending the three messages
, the statement:
Maybe.
(set 'finished true)
)
(set 'finished true)
set-ref-all
When evaluating (foo
data), the list in db:db will be passed by reference and <tt>set-ref-all</tt> will make the changes on the original, not on a copy of db:db.
When evaluating (foo
db), the list in db:db will be passed by reference and <tt>set-ref-all</tt> will make the changes on the original, not on a copy of db:db.
sgn
nil is returned.
If exp-2 is not specified, nil is returned with zero and,
if exp-3 is not specified, nil is returned with positive number.
Or more appropriate representations.
share
the return value will be any constant or expression (since v.10.1.0)
written into the memory previously.
The return value will be any constant or expression (since v.10.1.0)
written into the memory previously.
Maybe.
spawn
The example also shows how code written for the Cilk API will work under Win32, too, with spawn simply working as a set and sync just returning an empty list.
The example also shows how code written for the Cilk API will work under Win32, too, with spawn simply working as a set and sync just returning an empty list
or true.
Maybe.
sys-info
Eight integers report the following status:
Ten integers report the following status:
Maybe unless eight means 8-bits integer.
timer
Option
3 is a combination of both called profiling time.
Option
2 is a combination of both called profiling time.
This can be used to program
timelines or schedules.
This can be used to program
time lines or schedules.
or
This can be used to program
timeliness or schedules.
Maybe.
true?
Since version 9.1, true? behaves like if and rejects the empty list ()
Since version 9.1, true? behaves like if and rejects the empty list ()
.
until
Evaluates the condition in exp-condition
body.
Evaluates the condition in exp-condition.
write-char
(while (set 'chr (
read-file in-file))
(while (set 'chr (
read-char in-file))
xml-parse
As the database in example.xml only contains data, we can suppress whitespace and comments with option
(+ 1 3):
As the database in example.xml only contains data, we can suppress whitespace and comments with option
(+ 1 4):
or
As the database in example.xml only contains data, we can suppress whitespace
, empty attribute and comments with option
(+ 1 2 4):
Using xml-type-tags to suppress all XML-type tags-along with the option numbers 1, 4, 8, and 16-SXML formatted output can be generated:
Using xml-type-tags to suppress all XML-type tags-along with the option numbers 1,
2, 4, 8, and 16-SXML formatted output can be generated:
(xml-parse (read-file "example.xml") (+ 1 2 8) MAIN xml-callback)
(set 'example-xml (read-file "example.xml"))
(xml-parse example-xml (+ 1 2 8) MAIN xml-callback)
Maybe, or new xml-callback.
Some in the above-writing may be unnecessary.
By the way,
I finished a Japanese translation of the "4.Functions in alphabetical order" of the "Function Reference", but v.10.1.7.
It is possible to download it from the following URL.
http://cid-23a9a25e1aec3626.skydrive.li ... -10107.zip
Next, I will try to translate the current version.