Skip to content
/ calc Public

calc= is a small concatenative programming language for doing math in chats.

License

Notifications You must be signed in to change notification settings

Camto/calc

Repository files navigation

calc= logo.

Click here to go to the calc= console, where you can try it out and get the documentation.

Welcome to calc=, the stack language for chats! For a basic tutorial, type calc= tut. If you already know stack based programming, use calc= adv_tut.

Demos:

  • Fibonacci: calc= fib = {n -> 0 1 {x y -> y x y +} n iter drop} ; 0 9 .. $fib map
  • Factorial: calc= 1 5 .. $* 1 fold