deques: fix help-lint
parent
c0094186a1
commit
97a048fdc1
|
@ -1,5 +1,5 @@
|
||||||
USING: help.markup help.syntax kernel math sequences
|
USING: help.markup help.syntax kernel math sequences
|
||||||
quotations ;
|
quotations dlists ;
|
||||||
IN: deques
|
IN: deques
|
||||||
|
|
||||||
HELP: deque-empty?
|
HELP: deque-empty?
|
||||||
|
@ -53,12 +53,12 @@ HELP: peek-front*
|
||||||
{ $contract "Returns the object at the front of the deque, and a boolean indicating if an object was found." } ;
|
{ $contract "Returns the object at the front of the deque, and a boolean indicating if an object was found." } ;
|
||||||
|
|
||||||
HELP: peek-front
|
HELP: peek-front
|
||||||
{ $values { "deque" deque } { "obj" object } }
|
{ $values { "dlist" dlist } { "obj" object } }
|
||||||
{ $description "Returns the object at the front of the deque." }
|
{ $description "Returns the object at the front of the deque." }
|
||||||
{ $errors "Throws an error if the deque is empty." } ;
|
{ $errors "Throws an error if the deque is empty." } ;
|
||||||
|
|
||||||
HELP: ?peek-front
|
HELP: ?peek-front
|
||||||
{ $values { "deque" deque } { "obj/f" "an object or " { $link f } } }
|
{ $values { "dlist" dlist } { "obj/f" "an object or " { $link f } } }
|
||||||
{ $description "A forgiving version of " { $link peek-front } ". If the deque is empty, returns " { $link f } "." } ;
|
{ $description "A forgiving version of " { $link peek-front } ". If the deque is empty, returns " { $link f } "." } ;
|
||||||
|
|
||||||
HELP: pop-front
|
HELP: pop-front
|
||||||
|
@ -76,12 +76,12 @@ HELP: peek-back*
|
||||||
{ $contract "Returns the object at the back of the deque, and a boolean indicating if an object was found." } ;
|
{ $contract "Returns the object at the back of the deque, and a boolean indicating if an object was found." } ;
|
||||||
|
|
||||||
HELP: peek-back
|
HELP: peek-back
|
||||||
{ $values { "deque" deque } { "obj" object } }
|
{ $values { "dlist" dlist } { "obj" object } }
|
||||||
{ $description "Returns the object at the back of the deque." }
|
{ $description "Returns the object at the back of the deque." }
|
||||||
{ $errors "Throws an error if the deque is empty." } ;
|
{ $errors "Throws an error if the deque is empty." } ;
|
||||||
|
|
||||||
HELP: ?peek-back
|
HELP: ?peek-back
|
||||||
{ $values { "deque" deque } { "obj/f" "an object or " { $link f } } }
|
{ $values { "dlist" dlist } { "obj/f" "an object or " { $link f } } }
|
||||||
{ $description "A forgiving version of " { $link peek-back } ". If the deque is empty, returns " { $link f } "." } ;
|
{ $description "A forgiving version of " { $link peek-back } ". If the deque is empty, returns " { $link f } "." } ;
|
||||||
|
|
||||||
HELP: pop-back
|
HELP: pop-back
|
||||||
|
|
Loading…
Reference in New Issue