(left-section
binproc
left)
v, returns
(binproc left v).
(right-section
binproc
right)
v, returns
(binproc v right).
(l-s
binproc
left)
left-section.
(r-s
binproc
right)
right-section.
(^and
f1
f2
...
fn)
and. Creates
a new procedure that, when applied to some values, returns
(and (f1 values)
(f2 values)
...
(fn values)).(^or
f1
f2
...
fn)
or. Creates
a new procedure that, when applied to some values, returns
(or (f1 values)
(f2 values)
...
(fn values)).(^not
pred?)
not. Creates
a new procedure, that, when applied to some values, returns
the opposite of pred?. That is, (1)
if pred? returns a truish value when applied
to some parameters, the new procedure returns #f
when applied to those same parameters; (2) if
pred? returns false when applied to some
parameters, the new procedure returns #t when
applied to those same parameters.
(compose
f
g)
((compose f g) x)
is the same as (f (g x)).
(o
f1
f2
...
fn-1
fn)
f, in turn, starting with
fn and
working backwards. The composition, when applied to a value,
x, produces the same result as
(f1
(f2
(...
(fn-1
(fn x))))).
(constant
value)
value,
no matter what parameters it is applied to.
Copyright © 2007-2014 Janet Davis, Matthew Kluber, Samuel A. Rebelsky, and Jerod Weinman. (Selected materials copyright by John David Stone and Henry Walker and used by permission.)
This material is based upon work partially supported by the National Science Foundation under Grant No. CCLI-0633090. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
This work is licensed under a
Creative Commons Attribution-NonCommercial 3.0 Unported License
.