No announcement yet.

What is APLCODE ?

  • Filter
  • Time
  • Show
Clear All
new posts

  • What is APLCODE ?

    Greetings and welcome to the APL CODE REPOSITORY. is a free service that provides public access to thousands of APL programs and scripts. APL experts who signup for FREE membership at can upload their programs at

    APL programs, utilities, scripts and even complete applications are categorized and documented at The goal is to share the wealth of APL programs with others in a way that saves time and promotes learning. The SEARCH engine can help quickly find APL programs based on categories, APL symbols, application subject and keywords.

    Access to content is free for everyone.

  • #2
    In the APL language … there are many special symbols (special keys on the keyboard) that perform mathematical and logical functions.

    ∧ is logical “AND” so 1 ∧ 0 would yield 0
    ∨ is logical “OR” so 1 ∨ 0 would yield 1

    Of course.. since APL is a fully encapsulated language, we can easily create “words” for any “functions” we need.
    So, for example, I could extend the APL language by adding the following APL functions
    (Note the ∇ symbol is one way to define a function)

    ∇Z←A OR B
    Z←A ∨ B

    Now, we have a function named OR that performs the logical function of ∨ but wrapped in a more “friendly” function name OR

    1 OR 0 would yield 1

    APL also handles any size or shape data object without any changes to the functions or syntax.

    1 0 0 1 1 OR 1 1 0 0 0 would yield 1 1 0 1 1

    APL allows the creation of Variables to hold data.
    APL variables do not need to be pre-declared … you just start using them.

    V1 ← 1 0 0 1 1
    V2 ← 1 1 0 0 0

    So, now I can call the OR function, passing the variables (V1 and V2)

    V1 OR V2 would yield 1 1 0 1 1

    Can store results of any function, as needed.

    R←V1 OR V2

    R is now the “vector” 1 1 0 1 1

    APL is cool.