mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
Updating compose example to force exact result.
This commit is contained in:
parent
c381c2cf41
commit
d1efacb9c4
1 changed files with 3 additions and 1 deletions
|
@ -1320,7 +1320,9 @@
|
||||||
(lambda (f g)
|
(lambda (f g)
|
||||||
(lambda args
|
(lambda args
|
||||||
(f (apply g args)))))
|
(f (apply g args)))))
|
||||||
(test 30 ((compose sqrt *) 12 75))
|
(test '(30 0)
|
||||||
|
(call-with-values (lambda () ((compose exact-integer-sqrt *) 12 75))
|
||||||
|
list))
|
||||||
|
|
||||||
(test '(b e h) (map cadr '((a b) (d e) (g h))))
|
(test '(b e h) (map cadr '((a b) (d e) (g h))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue