mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 10:02:47 +03:00
settings-store: add existence scry
This commit is contained in:
parent
081c4579b2
commit
815c64b074
@ -93,6 +93,18 @@
|
|||||||
=/ entry=(unit val) (~(get by bucket) key)
|
=/ entry=(unit val) (~(get by bucket) key)
|
||||||
?~ entry [~ ~]
|
?~ entry [~ ~]
|
||||||
``settings-data+!>(entry+u.entry)
|
``settings-data+!>(entry+u.entry)
|
||||||
|
::
|
||||||
|
[%x %has-bucket @ ~]
|
||||||
|
=* buc i.t.t.pax
|
||||||
|
=/ has-bucket=? (~(has by settings) buc)
|
||||||
|
``noun+!>(has-bucket)
|
||||||
|
::
|
||||||
|
[%x %has-entry @ @ ~]
|
||||||
|
=* buc i.t.t.pax
|
||||||
|
=* key i.t.t.t.pax
|
||||||
|
=/ =bucket (fall (~(get by settings) buc) ~)
|
||||||
|
=/ has-entry=? (~(has by bucket) key)
|
||||||
|
``noun+!>(has-entry)
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
++ on-agent on-agent:def
|
++ on-agent on-agent:def
|
||||||
|
Loading…
Reference in New Issue
Block a user