APL Notes: Glyph aesthetics

Exceptionally satisfying hieroglyphics

   2 (↑⋈↓) "hello"

Applying multiple functions to a single subject

I found this example in some old notes about J forks: Suppose you have a monadic verb and you want to apply it to a bunch of data. Since J is an array programming language, this is very naturally done with an array of data. And suppose you have some data and you want to apply a bunch of verbs to it and collect their results. Since J is an array programming language, this is also naturally done:

   NB. one verb to many
   +: 0 5 10 15 20
0 10 20 30 40

   NB. one noun to many
   (^,-,+,|) _5
0.00673795 5 _5 5

The , there is not syntax, but the verb append. BQN has it as well, and can replicate this example exactly, but it's a rare aesthetic downgrade because ∾ (Join to) bleeds visually into the other functions instead of looking like syntax:

   # one verb to many
   2⊸× 0‿5‿10‿15‿20
   # one noun to many
   (⋆∾-∾+∾⌊) ¯5
   # a more flexible way to do it
   # (but no longer a justification for forks)
   ⟨⋆,-,+,|⟩{𝕎𝕩}¨ ¯5