Skip to content

Traditional functions

This part will cover

  • Tradfns
  • The branch operator
  • If, else if, else
  • For, while

Finally, we can get to the actual programming part ;D

Tradfns

Tradfns - pronounced exactly like you'd expect - are a way to write longer and more involved functions in APL. You'll finally be able to write program logic that spans multiple lines instead of having to cram everything into one line!

To create a tradfn, we use the Del operator followed by the name of the function we want to create.