fuel: add ? to a couple words.
parent
3c12d2575f
commit
ea66922b91
|
@ -29,19 +29,19 @@ IN: fuel
|
||||||
SYMBOL: :uses
|
SYMBOL: :uses
|
||||||
SYMBOL: :uses-suggestions
|
SYMBOL: :uses-suggestions
|
||||||
|
|
||||||
: is-use-restart ( restart -- ? )
|
: is-use-restart? ( restart -- ? )
|
||||||
name>> [ "Use the " head? ] [ " vocabulary" tail? ] bi and ;
|
name>> [ "Use the " head? ] [ " vocabulary" tail? ] bi and ;
|
||||||
|
|
||||||
: get-restart-vocab ( restart -- vocab/f )
|
: get-restart-vocab ( restart -- vocab/f )
|
||||||
obj>> dup word? [ vocabulary>> ] [ drop f ] if ;
|
obj>> dup word? [ vocabulary>> ] [ drop f ] if ;
|
||||||
|
|
||||||
: is-suggested-restart ( restart -- ? )
|
: is-suggested-restart? ( restart -- ? )
|
||||||
dup is-use-restart [
|
dup is-use-restart? [
|
||||||
get-restart-vocab :uses-suggestions get member?
|
get-restart-vocab :uses-suggestions get member?
|
||||||
] [ drop f ] if ;
|
] [ drop f ] if ;
|
||||||
|
|
||||||
: try-suggested-restarts ( -- )
|
: try-suggested-restarts ( -- )
|
||||||
restarts get [ is-suggested-restart ] filter
|
restarts get [ is-suggested-restart? ] filter
|
||||||
dup length 1 = [ first continue-restart ] [ drop ] if ;
|
dup length 1 = [ first continue-restart ] [ drop ] if ;
|
||||||
|
|
||||||
: set-use-hook ( -- )
|
: set-use-hook ( -- )
|
||||||
|
|
Loading…
Reference in New Issue