mirror of
https://github.com/urbit/ares.git
synced 2024-11-23 00:25:49 +03:00
hoon: add +fil
This commit is contained in:
parent
ff2650cf3a
commit
da6d1547a9
@ -318,6 +318,17 @@
|
||||
=/ [=bloq =step] ?^(a a [a *step])
|
||||
(mod b (bex (mul (bex bloq) step)))
|
||||
::
|
||||
++ fil :: fill bloqstream
|
||||
~/ %fil
|
||||
|= [a=bloq b=step c=@]
|
||||
=| n=@ud
|
||||
=. c (end a c)
|
||||
=/ d c
|
||||
|- ^- @
|
||||
?: =(n b)
|
||||
(rsh a d)
|
||||
$(d (add c (lsh a d)), n +(n))
|
||||
::
|
||||
++ lsh :: left-shift
|
||||
~/ %lsh
|
||||
|= [a=bite b=@]
|
||||
|
Loading…
Reference in New Issue
Block a user