Something went wrong. Try again.
A component based functional template language
Something went wrong. Try again.
479 B · 29 lines
at type-checker
123456789101112131415161718192021222324252627282930 $ NO_COLOR="1" print . Component <section> max(1, 5) = 5 min(1, 5) = 1 add_curry(1)(5) = 6 Math.fibonacci(9) = 34 Math.factorial(5) = 120 is_even(10) = true is_odd(10) = false 1 |> max(5) |> Math.factorial = 120 1 |> add_curry(5)() = 6 5 |> Math.factorial = 120 Math.Constants.pi = 3.1415 C.pi = 3.1415 Map: 1 4 9 16 Map Pipe: 1 4 9 16 </section>