remove abbreviations for for/sum' and
for/product'
This commit is contained in:
parent
fae6e273ed
commit
b78a1a8355
|
@ -22,9 +22,7 @@
|
|||
for/first for*/first
|
||||
for/last for*/last
|
||||
for/sum for*/sum
|
||||
(rename for/sum Σ) (rename for*/sum Σ*)
|
||||
for/product for*/product
|
||||
(rename for/product ∏) (rename for*/product ∏*)
|
||||
for/hash for*/hash
|
||||
for/hasheq for*/hasheq
|
||||
for/hasheqv for*/hasheqv
|
||||
|
|
|
@ -163,7 +163,6 @@ result of the @racket[for/or] expression is
|
|||
|
||||
@deftogether[(
|
||||
@defform[(for/sum (for-clause ...) body ...+)]
|
||||
@defform[(Σ (for-clause ...) body ...+)]
|
||||
)]{
|
||||
|
||||
Iterates like @racket[for], but each result of the last @racket[body]
|
||||
|
@ -171,13 +170,11 @@ is accumulated into a result with @racket[+].
|
|||
|
||||
@examples[
|
||||
(for/sum ([i '(1 2 3 4)]) i)
|
||||
(Σ ([i (in-range 100)]) i)
|
||||
]}
|
||||
|
||||
|
||||
@deftogether[(
|
||||
@defform[(for/product (for-clause ...) body ...+)]
|
||||
@defform[(∏ (for-clause ...) body ...+)]
|
||||
)]{
|
||||
|
||||
Iterates like @racket[for], but each result of the last @racket[body]
|
||||
|
@ -185,7 +182,6 @@ is accumulated into a result with @racket[*].
|
|||
|
||||
@examples[
|
||||
(for/product ([i '(1 2 3 4)]) i)
|
||||
(∏ ([i (in-range 1 5)]) i)
|
||||
]}
|
||||
|
||||
|
||||
|
@ -268,9 +264,7 @@ nested.
|
|||
@defform[(for*/and (for-clause ...) body ...+)]
|
||||
@defform[(for*/or (for-clause ...) body ...+)]
|
||||
@defform[(for*/sum (for-clause ...) body ...+)]
|
||||
@defform[(Σ* (for-clause ...) body ...+)]
|
||||
@defform[(for*/product (for-clause ...) body ...+)]
|
||||
@defform[(∏* (for-clause ...) body ...+)]
|
||||
@defform[(for*/first (for-clause ...) body ...+)]
|
||||
@defform[(for*/last (for-clause ...) body ...+)]
|
||||
@defform[(for*/fold ([accum-id init-expr] ...) (for-clause ...) body ...+)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user