mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 04:52:06 +03:00
hoon: clarify comments for +rep:in and +rep:by
"Replace" suggests this function either produces an updated set/map when done, like +snap, or changes all values in-place, like +turn. In truth, it's more similar to +roll, which does reduction/accumulation. ("Reduce" specifically was chosen because it maintains the mnemonic relation to the arm name.)
This commit is contained in:
parent
7be9ed95ab
commit
fa138ef216
@ -1337,7 +1337,7 @@
|
||||
a(r c)
|
||||
c(l a(r l.c))
|
||||
::
|
||||
++ rep :: replace by product
|
||||
++ rep :: reduce to product
|
||||
|* b/_=>(~ |=({* *} +<+))
|
||||
|-
|
||||
?~ a +<+.b
|
||||
@ -1592,7 +1592,7 @@
|
||||
a(r d)
|
||||
d(l a(r l.d))
|
||||
::
|
||||
++ rep :: replace by product
|
||||
++ rep :: reduce to product
|
||||
|* b/_=>(~ |=({* *} +<+))
|
||||
|-
|
||||
?~ a +<+.b
|
||||
|
Loading…
Reference in New Issue
Block a user