mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 04:58:08 +03:00
hoon: address review comments for pin and awl
This commit is contained in:
parent
6b4b652f31
commit
e020d06cd4
@ -236,12 +236,13 @@
|
||||
?< =(0 b)
|
||||
|- ^- ?
|
||||
?: =(a 1) %&
|
||||
?: =((cap a) (cap b))
|
||||
$(a (mas a), b (mas b))
|
||||
%|
|
||||
?. =((cap a) (cap b)) %|
|
||||
$(a (mas a), b (mas b))
|
||||
::
|
||||
++ awl
|
||||
~/ %awl
|
||||
:: axis after axis
|
||||
::
|
||||
:: computes the remainder of axis {b} when navigating to {a}.
|
||||
:: (crashes if not `(pin a b)`)
|
||||
|= [a=@ b=@]
|
||||
@ -249,9 +250,8 @@
|
||||
?< =(0 b)
|
||||
|- ^- @
|
||||
?: =(a 1) b
|
||||
?: =((cap a) (cap b))
|
||||
$(a (mas a), b (mas b))
|
||||
!!
|
||||
?> =((cap a) (cap b))
|
||||
$(a (mas a), b (mas b))
|
||||
::
|
||||
:: # %containers
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user