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:
Fang 2020-02-13 23:56:44 +01:00 committed by GitHub
parent 7be9ed95ab
commit fa138ef216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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