:lambda: calculus


?

Yeah. Isn't that much cleaner looking?

untitled script pic (13)

Oh, oops, I should have noticed earlier: You have to unringify the inner call. You want the outer call to call the function that the call to A reports, not calling A.

Still doesnt work

Share a link?


;~)

which?plus?

Experiment!



How about


?


Oh I get it

Plus and times are a little more complicated than exponentiation (counterintuitively!) but not too hard. I guess you did +, but see if you can do x without repeated addition.

I remeber that it should be using the compose function
but i forgot what is a compose function :frowning:

"Composition of functions" means making a new function by applying one existing function to the input and applying another existing function to the result of that. It's a fancy name for something you do all the time with arithmetic functions: untitled script pic (1). But it's a bit more unfamiliar in other contexts, such as this code to find the third item in a list:

.

We can abstract this idea by embodying it in a higher order function:

untitled script pic (4)

Ahh I get it now

I'm gonna be a teacher when I grow up. ;~)

:~?

@bh(brian harvey) don't let ur grandson hijack this thread :C

aaaaa
its too hard for me
im dumber this yr :C