Timeline for Find the weight of five apples
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 7, 2022 at 12:36 | history | edited | Dominic van Essen | CC BY-SA 4.0 |
added 209 characters in body
|
Apr 7, 2022 at 12:32 | comment | added | Dominic van Essen | @Razetime - Thankyou for the explanation. I just drew it out & now understand... | |
Apr 7, 2022 at 12:25 | comment | added | Razetime | arrays are fine to use as a starting value. adding an array and a number is okay in BQN. It distinguishes between arrays and atomic values (numbers, chars, so on) , so it doesn't fuss when given that as a starting value. | |
Apr 7, 2022 at 11:11 | comment | added | Dominic van Essen |
@Razetime - But here both the left (- = negative of input) and right (÷⟜4 = input divided by 4) arguments are lists. How does that work to use them as a starting value?
|
|
Apr 7, 2022 at 11:08 | comment | added | Razetime |
-+´÷⟜4 is just an ordinary fork. ´ when used dyadically does "fold with starting value".
|
|
Apr 7, 2022 at 10:58 | comment | added | Dominic van Essen |
@ovs - Thanks! Can you explain how it works? In particular, how does +´ = fold plus work as a dyadic operator?
|
|
Apr 7, 2022 at 10:49 | comment | added | ovs |
-+´÷⟜4 works for 6 bytes
|
|
Apr 7, 2022 at 10:06 | history | answered | Dominic van Essen | CC BY-SA 4.0 |