doff: improve generator interface slightly

No longer need to give units as named arguments, instead just the bare
values. The defaults get recognized as the "no filter" case.
This commit is contained in:
fang 2022-08-10 22:37:30 +02:00
parent 2fe27bd8d7
commit 8033fe760e
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -1,6 +1,8 @@
:- %say
|= $: [now=@da eny=@uvJ bec=beak]
~
[dude=(unit dude:gall) ship=(unit ship)]
[dude=_`dude:gall`%$ ship=_`@p`(bex 128)]
==
[%helm-doff dude ship]
=/ darg=(unit dude:gall) ?:(=(%$ dude) ~ `dude)
=/ sarg=(unit ^ship) ?:(=((bex 128) ship) ~ `ship)
[%helm-doff darg sarg]