Definitely not Java! A Hands-on Introduction to
Efficient Functional Programming with REASON
Carlo Fürst, Jonas Traub, Arne Artur Schulze
Summary
- Whenever we insert a value, we prepend the value to the top list.
- Whenever we pop and the bottom list is empty,
we revert the top list into the bottom list.
- Whenever we pop a value and there is at least one values in the
bottom list, we pop the first value from the bottom list.
Introduction to
Tail Recursion
compiles to
recursive
function
compiles to
while loop
=>
constant
stack size
How to transform recursive
functions into tail recursive
functions?
Take a look at the
”Continuation-Passing Style”
pattern
Try REason on
resonml.github.io
Try REason on
resonml.github.io

Definitely not Java! A Hands-on Introduction to Efficient Functional Programming with REASON - code.talks 2022 - Carlo Fürst, Jonas Traub, Arne Artur Schulze