Tips and Tricks

This category collects practical Tips and Tricks for working with Dyalog APL day to day: customising the session and IDE, keyboard shortcuts and input methods, and techniques for squeezing more performance out of your code, including flat-array alternatives to nested data. Expect concrete, applied advice rather than language theory.

In my previous post, I laid the groundwork for extending the development environment by running a collection of small functions at startup time. If... Read
Sometimes it seems that I have the attention span of a cocker spaniel puppy. I start to look at one thing, and then something pops up to distract me and I... Read
Working with an AI coding “agent” can make us more productive by automating boiler plating, helping with testing, and so on. LLMs are very good at... Read
Sometimes I want additional functionality in the IDE. Over the years I have collected a small collection of “tweaks”. I have a single tidy folder of small... Read
See also Enhanced Debugging with Function Keys. When tracing through a complex dfn and reaching a guard (condition:result), I am often wary of tracing into... Read
Background The stencil operator ⌺ was introduced in Dyalog version 16.0 in 2017. Recently we received some feedback (OK, complaints) that (a) stencil does... Read
Sometimes I want an additional functionality in the IDE. (Are you a RIDE user? We’ll cover that too!) For example, the other day, I was tracing through... Read
I-Beam (⌶) is an operator that takes as its operand a numeric code and derives a function which isn’t really considered to be part of the APL language... Read
For-loops Given an initial state defined by a number of variables, a for-loop iterates through its argument array modifying the state.     A←... ⋄... Read
A message in the Forum inquired on sorting strings in APL with a custom comparison function. First, sorting strings without a custom comparison function... Read
I was asked by a colleague why ⎕S reports two matches in the following example: ('\d*'⎕S 0 1)'321' ┌───┬───┐ │0 3│3 0│... Read
The most obvious expression for computing π in APL is ○1. But what if you can’t remember how ○ works, or your O key is broken, or you feel like... Read
The winners of the 2014 APL Problem Solving Competition were recognized at the Dyalog ’14 user meeting and had a chance to share their... Read
The first e-mail of the work week came from Nicolas Delcros. He wondered whether anything clever can be done with ∘.≡ on enclosed character strings. I... Read
At Dyalog, a developer not only needs access to all of the readily available editions of the interpreter but also to earlier versions that are no longer... Read