Skip to content

Commit

Permalink
Remove ⍺ from FlipBlock in 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
abrudz authored Aug 8, 2024
1 parent d1c12bc commit 11a1499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/cells-and-axes.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,15 +546,15 @@ The [section about older features](./Quirks.md) has some more examples of bracke
???Example "Answer"

```APL
FlipBlock ← {(⊖⍤2)⍵}
FlipBlock ← {(⊖⍤2)⍵}
```

We can also use the **right/identity** function `⊢⍵` to separate the array *operand* of the rank **operator** from the array *argument* of the derived **function** reverse-first-rank-two `⊖⍤2`. Otherwise, stranding would bind `2 ⍵` into a vector, causing unexpected behaviour.

This author prefers to isolate operands using parentheses most of the time.

```APL
FlipBlock ← {⊖⍤2⊢⍵}
FlipBlock ← {⊖⍤2⊢⍵}
```

Alternatively, we can write this as a [tacit function](./user-defined-functions.md#the-three-function-styles). This form is also known as a <dfn>derived</dfn> function because a new function is derived from functions and operators.
Expand Down

0 comments on commit 11a1499

Please sign in to comment.