mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-04 21:33:41 +03:00
refactors ++se-alas, ++se-amor, and call sites in drum
This commit is contained in:
parent
e49f07d0f6
commit
0f2f801811
@ -277,9 +277,7 @@
|
||||
::
|
||||
++ se-alas :: recalculate index
|
||||
|= gyl/gill
|
||||
^+ +>
|
||||
=+ [xin=0 wag=se-amor]
|
||||
?: =(~ wag) +>.$(inx 0)
|
||||
|- ^+ +>.^$
|
||||
?~ wag +>.^$(inx 0)
|
||||
?: =(i.wag gyl) +>.^$(inx xin)
|
||||
@ -287,19 +285,20 @@
|
||||
::
|
||||
++ se-amor :: live targets
|
||||
^- (list gill)
|
||||
(skim (~(tap in eel)) |=(gill ?=({$~ $~ *} (~(get by fug) +<))))
|
||||
%+ skim (~(tap in eel))
|
||||
|=(a/gill ?=({$~ $~ *} (~(get by fug) a)))
|
||||
::
|
||||
++ se-anon :: rotate index
|
||||
=+ wag=se-amor
|
||||
?~ wag +
|
||||
:: ~& [%se-anon inx+inx wag+wag nex+(mod +(inx) (lent se-amor))]
|
||||
+(inx (mod +(inx) (lent se-amor)))
|
||||
+(inx (mod +(inx) (lent wag)))
|
||||
::
|
||||
++ se-agon :: current gill
|
||||
^- (unit gill)
|
||||
=+ wag=se-amor
|
||||
?~ wag ~
|
||||
`(snag inx se-amor)
|
||||
`(snag inx `(list gill)`wag)
|
||||
::
|
||||
++ se-belt :: handle input
|
||||
|= bet/dill-belt
|
||||
|
Loading…
Reference in New Issue
Block a user