Timeline for Applying Replace Conditional with Composition in functional programming
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 17, 2021 at 6:52 | comment | added | Sebastian Thomas | The OP's question appealed to me because most examples of composition show how to do operations on a returned value, not the original value. Eg. Compose(2).add(3). multiply(2) // 10. But I wanted more of an else/if operation as op as shown. | |
Jul 17, 2021 at 6:42 | comment | added | Sebastian Thomas | JavaScript es6 :) . I've read up a bit on currying and compose, so I have some vague idea. But hard to see how to connect the dots. | |
Jul 15, 2021 at 13:53 | comment | added | Ewan | what language are you using? | |
Jul 15, 2021 at 13:50 | history | bounty ended | Sebastian Thomas | ||
Jul 15, 2021 at 13:49 | comment | added | Sebastian Thomas | I'm not sure what I'm lookin at here as I'm a FP n00b, so some extra info would be appreciated, but thanks for answering! :) Take my bounty. | |
Jul 12, 2021 at 18:59 | history | answered | Ewan | CC BY-SA 4.0 |