Changing unstable, xml, html, and web-server to be rackety

original commit: 7d1c7d874b6693e9d74722149a40ae43ac56e90f
This commit is contained in:
Jay McCarthy 2010-04-28 13:21:30 -06:00
commit 885b7d6616
68 changed files with 21 additions and 21 deletions

View File

@ -1,7 +1,7 @@
#lang scheme/base #lang scheme/base
(require (for-syntax scheme/base) (require (for-syntax scheme/base)
(for-syntax scheme/private/struct-info) (for-syntax racket/private/struct-info)
scheme/list scheme/list
scheme/match scheme/match
unstable/struct unstable/struct

View File

@ -1,5 +1,5 @@
#lang scheme/base #lang racket/base
(require scheme/contract (require racket/contract
unstable/struct) unstable/struct)
(provide/contract (provide/contract

View File

@ -1,20 +1,20 @@
#lang scribble/manual #lang scribble/manual
@(require scribble/eval @(require scribble/eval
"utils.ss" "utils.rkt"
(for-label unstable/find (for-label unstable/find
scheme/contract racket/contract
scheme/shared racket/shared
scheme/base)) racket/base))
@title[#:tag "find"]{Find} @title[#:tag "find"]{Find}
@(define the-eval (make-base-eval)) @(define the-eval (make-base-eval))
@(the-eval '(require unstable/find)) @(the-eval '(require unstable/find))
@(the-eval '(require scheme/shared)) @(the-eval '(require racket/shared))
@defmodule[unstable/find] @defmodule[unstable/find]
@unstable[@author+email["Ryan Culpepper" "ryanc@plt-scheme.org"]] @unstable[@author+email["Ryan Culpepper" "ryanc@racket-lang.org"]]
@defproc[(find [pred (-> any/c any/c)] @defproc[(find [pred (-> any/c any/c)]
[x any/c] [x any/c]
@ -23,23 +23,23 @@
[#:get-children get-children (or/c #f (-> any/c (or/c #f list?))) #f]) [#:get-children get-children (or/c #f (-> any/c (or/c #f list?))) #f])
list?]{ list?]{
Returns a list of all values satisfying @scheme[pred] contained in Returns a list of all values satisfying @racket[pred] contained in
@scheme[x] (possibly including @scheme[x] itself). @racket[x] (possibly including @racket[x] itself).
If @scheme[stop-on-found?] is true, the children of values satisfying If @racket[stop-on-found?] is true, the children of values satisfying
@scheme[pred] are not examined. If @scheme[stop] is a procedure, then @racket[pred] are not examined. If @racket[stop] is a procedure, then
the children of values for which @scheme[stop] returns true are not the children of values for which @racket[stop] returns true are not
examined (but the values themselves are; @scheme[stop] is applied examined (but the values themselves are; @racket[stop] is applied
after @scheme[pred]). Only the current branch of the search is after @racket[pred]). Only the current branch of the search is
stopped, not the whole search. stopped, not the whole search.
The search recurs through pairs, vectors, boxes, and the accessible The search recurs through pairs, vectors, boxes, and the accessible
fields of structures. If @scheme[get-children] is a procedure, it can fields of structures. If @racket[get-children] is a procedure, it can
override the default notion of a value's children by returning a list override the default notion of a value's children by returning a list
(if it returns false, the default notion of children is used). (if it returns false, the default notion of children is used).
No cycle detection is done, so @scheme[find] on a cyclic graph may No cycle detection is done, so @racket[find] on a cyclic graph may
diverge. To do cycle checking yourself, use @scheme[stop] and a diverge. To do cycle checking yourself, use @racket[stop] and a
mutable table. mutable table.
@examples[#:eval the-eval @examples[#:eval the-eval
@ -63,8 +63,8 @@ mutable table.
[#:default default any/c (lambda () (error ....))]) [#:default default any/c (lambda () (error ....))])
any/c]{ any/c]{
Like @scheme[find], but only returns the first match. If no Like @racket[find], but only returns the first match. If no
matches are found, @scheme[default] is applied as a thunk if it is a matches are found, @racket[default] is applied as a thunk if it is a
procedure or returned otherwise. procedure or returned otherwise.
@examples[#:eval the-eval @examples[#:eval the-eval