Fix docs for takef
Closes PR 14619
This commit is contained in:
parent
0f5931f093
commit
05bc8f3082
|
@ -906,12 +906,13 @@ Returns a fresh list whose elements are taken successively from
|
||||||
includes up to, but not including, the first element in @racket[lst] for
|
includes up to, but not including, the first element in @racket[lst] for
|
||||||
which @racket[pred] returns @racket[#f].
|
which @racket[pred] returns @racket[#f].
|
||||||
|
|
||||||
The @racket[lst] argument need not actually be a list; @racket[lst]
|
The @racket[lst] argument need not actually be a list; the chain of
|
||||||
must merely start with a chain of at least @racket[pos] pairs.
|
pairs in @racket[lst] will be traversed until a non-pair is encountered.
|
||||||
|
|
||||||
@mz-examples[#:eval list-eval
|
@mz-examples[#:eval list-eval
|
||||||
(takef '(2 4 5 8) even?)
|
(takef '(2 4 5 8) even?)
|
||||||
(takef '(2 4 6 8) odd?)]}
|
(takef '(2 4 6 8) odd?)
|
||||||
|
(takef '(2 4 . 6) even?)]}
|
||||||
|
|
||||||
|
|
||||||
@defproc[(dropf [lst any/c] [pred procedure?])
|
@defproc[(dropf [lst any/c] [pred procedure?])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user