racket/collects/embedded-gui/scribblings/dllist.scrbl
Eli Barzilay ac26fe7554 A ton of @scheme*' -> @racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00

31 lines
711 B
Racket

#lang scribble/doc
@(require "common.rkt")
@definterface/title[dllist<%> ()]{
Defines a doubly-linked.
@defmethod*[([(next) (is-a?/c dllist<%>)]
[(next [new-next (is-a?/c dllist<%>)]) void?])]{
Gets/sets the next field to be the given dllist.}
@defmethod*[([(prev) (is-a?/c dllist<%>)]
[(prev [new-prev (is-a?/c dllist<%>)]) void?])]{
Gets/sets the previous item in the list.}
@defmethod[(for-each [f ((is-a?/c dllist<%>) . -> . void?)]) void?]{
Applies @racket[f] to every element of the dllist.}
@defmethod[(map-to-list [f ((is-a?/c dllist<%>) . -> . any/c)])
(listof any/c)]{
Creates a Scheme list by applying @racket[f] to every element
of @this-obj[].}
}