commit 6c350a6a96b81851bb6c419bb3a474bfb7229a3d
parent b6048fa86cc0150f2e532d422f564f06a76b7f62
Author: Georges Dupéron <georges.duperon@gmail.com>
Date: Tue, 5 Dec 2017 00:33:11 +0100
Fixed use of defproc
Diffstat:
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/scribblings/typed-worklist.scrbl b/scribblings/typed-worklist.scrbl
@@ -28,12 +28,12 @@ of nodes that still need to be visited. A polymorphic
processed/to-process nodes from a @emph{homogeneous} graph would have the
following signature:
-@nested[#:style 'inset]{
- @defproc[(example-worklist1 [roots (Listof In)]
- [proc (→ In (Values Out (Listof In)))])
- (Listof Out)
- #:link-target? #f]{
-
+@nested[
+ #:style 'inset
+ @defproc[#:link-target? #f
+ (example-worklist1 [roots (Listof In)]
+ [proc (→ In (Values Out (Listof In)))])
+ (Listof Out)]{
Signature for a hypothetical function which takes an initial list of tasks of
type @racketid[In], and a processing function which consumes one task,
returning a result of type @racket[Out], and a list of new tasks.
@@ -41,8 +41,7 @@ following signature:
The hypothetical function would return the results obtained after processing
each task, making sure that each task is processed only once (i.e. if a task
is returned multiple times by processing functions, it is only added once to
- the queue).}
-}
+ the queue).}]
However, when the tasks to handle have heterogeneous types @racket[In₁ … Inₙ],
the type of the @racketid[worklist] function is not simple to express. Using