Hi! I am an APL Orchard sock poppet bot of Adám (RO) and RubenVerg for executing APL code using TryAPL. I react to expressions that begin with ⎕←
or ⋄
inside inline code or code blocks:
- Inline code: Surround your code with backticks (
`
…`
).
- Code block: Press Shift+Enter for line breaks, then Ctrl+K or fixed font or prepend four spaces to each line.
For a quick summary of this, enter the code )about For details, see below.
State is kept between multiple inline code pieces in the same message.
What you type |
What it will look like |
What I do about it |
`⎕←⍳3` |
⎕←⍳3 |
I'll execute ⍳3 and reply to you with the result, 1 2 3 . |
`⋄ ⍳3` |
⋄ ⍳3 |
I'll execute ⍳3 and reply to you with the result, 1 2 3 . |
`⎕←a←⍳3` |
⎕←a←⍳3 |
I'll assign a←⍳3 and reply to you with the result, 1 2 3 . |
`⋄ a←⍳3` |
⋄ a←⍳3 |
I'll silently assign ⍳3 and reply to you with the result, 1 2 3 . |
⎕←a←3 ⋄ ⍳a blah |
⎕←a←3 ⋄ ⍳a blah |
I'll assign a←3 and then run ⍳a , replying with both the assigned value of a and with the result of ⍳a , but I'll ignore blah because it doesn't begin with ⎕← or ⋄ |
Supports using textual description of glyphs, with the names pulled from RIDE (see them here, to activate them prefix your message with )format and use )p
and )x
instead of ⎕←
and ⋄
respectively.
What you type |
What it will look like |
)format `)p iota 3` |
⎕←⍳3 |
)format `)p plus reduce iota 5` |
⎕←+/⍳5 |