Add <> word

db4
Slava Pestov 2008-11-22 03:22:19 -06:00
parent 42926ebfcf
commit 1162ee6b0f
3 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@ GENERIC: word-help* ( word -- content )
{ { "object" object } { "?" "a boolean" } } $values
[
"Tests if the object is an instance of the " ,
first "predicating" word-prop \ $link swap 2array ,
first "predicating" word-prop <$link> ,
" class." ,
] { } make $description ;

View File

@ -348,3 +348,6 @@ M: array elements*
] each
] curry each
] H{ } make-assoc keys ;
: <$link> ( topic -- element )
\ $link swap 2array ;

View File

@ -8,7 +8,7 @@ IN: ui.commands
[ gesture>string , ]
[
[ command-name , ]
[ command-word \ $link swap 2array , ]
[ command-word <$link> , ]
[ command-description , ]
tri
] bi*