Fix promises help lint
parent
31308a7fb2
commit
c88cf361e7
|
@ -29,6 +29,6 @@ HELP: LAZY:
|
||||||
{ $values { "word" "a new word to define" } { "definition" "a word definition" } }
|
{ $values { "word" "a new word to define" } { "definition" "a word definition" } }
|
||||||
{ $description "Creates a lazy word in the current vocabulary. When executed the word will return a " { $link promise } " that when forced, executes the word definition. Any values on the stack that are required by the word definition are captured along with the promise." }
|
{ $description "Creates a lazy word in the current vocabulary. When executed the word will return a " { $link promise } " that when forced, executes the word definition. Any values on the stack that are required by the word definition are captured along with the promise." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example "USING: math prettyprint promises ;" "LAZY: my-add ( a b -- c ) + ;" "1 2 my-add force ." "3" }
|
{ $example "USING: arrays sequences prettyprint promises ;" "IN: scratchpad" "LAZY: zeroes ( -- pair ) 0 zeroes 2array ;" "zeroes force second force first ." "0" }
|
||||||
}
|
}
|
||||||
{ $see-also force promise-with promise-with2 } ;
|
{ $see-also force promise-with promise-with2 } ;
|
||||||
|
|
Loading…
Reference in New Issue