racket/collects/embedded-gui/scribblings/dllist.scrbl
Matthew Flatt 6fcc293c4a embedded-gui docs
svn: r9389
2008-04-21 20:51:23 +00:00

31 lines
710 B
Racket

#lang scribble/doc
@(require "common.ss")
@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 @scheme[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 @scheme[f] to every element
of @this-obj[].}
}