Message from @Gsurus
Discord ID: 272194988488654849
Do you know JavaScript?
yeah pretty much
Nice, nice.
it's not my favorite language but I do know it
What's your favorite language?
pure functional stuff
Ah.
i'm an IT teacher, so ...
i'd say stuff like Ocaml, haskell are my favorites
that's what I teach mostly, that and C / C++
I've never heard of Ocaml or haskell
I'll have to look into those.
yeah well, you should try to check those language if you want to learn more about functional programming
I'll have to, it sounds interesting. I don't think I've ever used a functional programming language.
Just object oriented.
well OcamL is object oriented too
Oh, neat.
but you would have to get rid of some concept that you know, like loops, variables...
😄
So how do you go about things that would usually use a loop?
by default in functional programming, variables and loops aren't really first citizen stuff
record are immutable and you use recursivity for "loops"
Oh, I see.
Kongou desu
Eeey
like a function for the Takeuchi Ikuo algorithm would be something like this in ocaml :
```ocaml
let rec tak x y z =
if y >= x then z
else tak (tak (x - 1) y z) (tak (y - 1) z x) (tak (z - 1) x y)
```
>.>
He
llo
what's going on with `z` in that example? At the ``if y >= x then z`` line
Hey nrg
Hey Homu
Thanks
I want your love
z is returned
Ah, okay.
Hey Towlie my man 😄