6.1
10 Functions
Link to this section with
@secref["Functions" #:doc '(lib "unstable/scribblings/unstable.scrbl")]
Link to this section with
@secref["Functions" #:doc '(lib "unstable/scribblings/unstable.scrbl")]
This module provides tools for higher-order programming and creating functions.
10.1 Higher Order Predicates
Link to this section with
@secref["Higher_Order_Predicates"
#:doc '(lib "unstable/scribblings/unstable.scrbl")]
Link to this section with
@secref["Higher_Order_Predicates"
#:doc '(lib "unstable/scribblings/unstable.scrbl")]
Combines calls to each function with
and. Equivalent to
(and (f x ...) ...)Examples: |
| | > (f 1) | #t | > (f 1.0) | #f | > (f 1/2) | #f | > (f 0.5) | #f |
|
Combines calls to each function with
or. Equivalent to
(or (f x ...) ...)Examples: |
| | > (f 1) | #t | > (f 1.0) | #t | > (f 1/2) | #t | > (f 0.5) | #f |
|