diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-09-23 23:36:52 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-09-23 23:36:52 -0400 |
| commit | 834317151987193ed0470a58dbedc6c0090cadf1 (patch) | |
| tree | 6321501a1ba040d47cbc834e320eea7af62e989e /tutorial/expression.md | |
| parent | a4d5dd4420bc22b090408f92f6e4c451fb38a80f (diff) | |
Add second tutorial, on lists
Diffstat (limited to 'tutorial/expression.md')
| -rw-r--r-- | tutorial/expression.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tutorial/expression.md b/tutorial/expression.md index 6a90a471..59fe827c 100644 --- a/tutorial/expression.md +++ b/tutorial/expression.md @@ -127,7 +127,7 @@ Addition and subtraction with affine characters have all the same algebraic prop Functions are nice and all, but to really bring us into the space age BQN has a second level of function called *modifiers* (the space age in this case is when operators were introduced to APL in the early 60s—hey, did you know the [second APL conference](https://aplwiki.com/wiki/APL_conference#1970) was held at Goddard Space Flight Center?). While functions apply to subjects, modifiers can apply to functions *or* subjects, and return functions. For example, the 1-modifier `˜` modifies one function by swapping the arguments before calling it (Swap), or copying the right argument to the left if there's only one (Self). 2 -˜ 'd' # Subtract from - +˜ 3 # Add to itself + +˜ 3 # Add to itself This gives us two nice ways to square a value: |
