4,493
edits
m (Compilers category) |
(fix syntax colouring) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox array language | {{Infobox array language | ||
| logo = [[File:BQN logo.png]] | |||
| array model = [[based array model|based]] | | array model = [[based array model|based]] | ||
| index origin = 0 | | index origin = 0 | ||
Line 29: | Line 30: | ||
! Glyph !! Monadic !! Dyadic | ! Glyph !! Monadic !! Dyadic | ||
|- | |- | ||
| < | | <code>+</code> || [[Conjugate]] || [[Add]] | ||
|- | |- | ||
| < | | <code>-</code> || [[Negate]] || [[Subtract]] | ||
|- | |- | ||
| < | | <code>×</code> || [[Sign]] || [[Multiply]] | ||
|- | |- | ||
| < | | <code>÷</code> || [[Reciprocal]] || [[Divide]] | ||
|- | |- | ||
| < | | <code>⋆</code> || [[Exponential]] || [[Power (function)|Power]] | ||
|- | |- | ||
| < | | <code>√</code> || [[Square Root]] || [[Root]] | ||
|- | |- | ||
| < | | <code>⌊</code> || [[Floor]] || [[Minimum]] | ||
|- | |- | ||
| < | | <code>⌈</code> || [[Ceiling]] || [[Maximum]] | ||
|- | |- | ||
| < | | <code>∧</code> || Sort Up || [[And]] | ||
|- | |- | ||
| < | | <code>∨</code> || Sort Down || [[Or]] | ||
|- | |- | ||
| < | | <code>¬</code> || [[Not]] || Span | ||
|- | |- | ||
| < | | <code>|</code> || [[Absolute Value]] || [[Residue|Modulus]] | ||
|- | |- | ||
| < | | <code>≤</code> || || [[Less Than or Equal to]] | ||
|- | |- | ||
| < | | <code><</code> || [[Enclose]] || [[Less Than]] | ||
|- | |- | ||
| < | | <code>></code> || [[Mix|Merge]] || [[Greater Than]] | ||
|- | |- | ||
| < | | <code>≥</code> || || [[Greater Than or Equal to]] | ||
|- | |- | ||
| < | | <code>=</code> || [[Rank]] || [[Equals]] | ||
|- | |- | ||
| < | | <code>≠</code> || [[Tally|Length]] || [[Not Equals]] | ||
|- | |- | ||
| < | | <code>≡</code> || [[Depth]] || [[Match]] | ||
|- | |- | ||
| < | | <code>≢</code> || [[Shape]] || [[Not Match]] | ||
|- | |- | ||
| < | | <code>⊣</code> || [[Identity]] || [[Left]] | ||
|- | |- | ||
| < | | <code>⊢</code> || [[Identity]] || [[Right]] | ||
|- | |- | ||
| < | | <code>⥊</code> || [[Ravel|Deshape]] || [[Reshape]] | ||
|- | |- | ||
| < | | <code>∾</code> || [[Raze|Join]] || [[Catenate|Join to]] | ||
|- | |- | ||
| < | | <code>≍</code> || Solo || Couple | ||
|- | |- | ||
| < | | <code>↑</code> || Prefixes || [[Take]] | ||
|- | |- | ||
| < | | <code>↓</code> || Suffixes || [[Drop]] | ||
|- | |- | ||
| < | | <code>↕</code> || [[Index Generator|Range]] || Windows | ||
|- | |- | ||
| < | | <code>»</code> || Nudge || Shift Before | ||
|- | |- | ||
| < | | <code>«</code> || Nudge Back || Shift After | ||
|- | |- | ||
| < | | <code>⌽</code> || [[Reverse]] || [[Rotate]] | ||
|- | |- | ||
| < | | <code>⍉</code> || [[Transpose]] || [[Transpose|Reorder axes]] | ||
|- | |- | ||
| < | | <code>/</code> || [[Indices]] || [[Replicate]] | ||
|- | |- | ||
| < | | <code>⍋</code> || [[Grade|Grade Up]] || [[Interval_Index|Bins Up]] | ||
|- | |- | ||
| < | | <code>⍒</code> || [[Grade|Grade Down]] || [[Interval_Index|Bins Down]] | ||
|- | |- | ||
| < | | <code>⊏</code> || First Cell || Select | ||
|- | |- | ||
| < | | <code>⊑</code> || [[First]] || Pick | ||
|- | |- | ||
| < | | <code>⊐</code> || Classify || [[Index of]] | ||
|- | |- | ||
| < | | <code>⊒</code> || [[Occurrence Count]] || [[Progressive Index of]] | ||
|- | |- | ||
| < | | <code>∊</code> || [[Unique Mask]] || [[Member of]] | ||
|- | |- | ||
| < | | <code>⍷</code> || [[Unique|Deduplicate]] || [[Find]] | ||
|- | |- | ||
| < | | <code>⊔</code> || Group Indices || Group | ||
|} | |} | ||
=== Modifiers === | === Modifiers === | ||
[[Monadic operator|1-modifiers]] in BQN use superscript symbols, while [[Dyadic operator|2-modifiers]] use symbols with a circle, but not one with a line through it like < | [[Monadic operator|1-modifiers]] in BQN use superscript symbols, while [[Dyadic operator|2-modifiers]] use symbols with a circle, but not one with a line through it like <code>⌽</code> and <code>⍉</code>. | ||
{| | {| | ||
Line 123: | Line 124: | ||
! Glyph !! Name(s) | ! Glyph !! Name(s) | ||
|- | |- | ||
| < | | <code>˙</code> || [[Constant]] | ||
|- | |- | ||
| < | | <code>˜</code> || [[Commute|Self/Swap]] | ||
|- | |- | ||
| < | | <code>˘</code> || Cells | ||
|- | |- | ||
| < | | <code>¨</code> || [[Each]] | ||
|- | |- | ||
| < | | <code>⌜</code> || [[Outer Product|Table]] | ||
|- | |- | ||
| < | | <code>⁼</code> || Undo | ||
|- | |- | ||
| < | | <code>´</code> || [[Reduce|Fold]] | ||
|- | |- | ||
| < | | <code>˝</code> || [[Reduce|Insert]] | ||
|- | |- | ||
| < | | <code>`</code> || [[Scan]] | ||
|} | |} | ||
|style="vertical-align:top"| | |style="vertical-align:top"| | ||
Line 145: | Line 146: | ||
! Glyph !! Name(s) | ! Glyph !! Name(s) | ||
|- | |- | ||
| < | | <code>∘</code> || [[Atop]] | ||
|- | |- | ||
| < | | <code>○</code> || [[Over]] | ||
|- | |- | ||
| < | | <code>⊸</code> || [[Before]]/[[Bind]] | ||
|- | |- | ||
| < | | <code>⟜</code> || [[After]]/[[Bind]] | ||
|- | |- | ||
| < | | <code>⌾</code> || [[Under]] | ||
|- | |- | ||
| < | | <code>⊘</code> || Valences | ||
|- | |- | ||
| < | | <code>◶</code> || Choose | ||
|- | |- | ||
| < | | <code>⎉</code> || [[Rank (operator)|Rank]] | ||
|- | |- | ||
| < | | <code>⚇</code> || [[Depth (operator)|Depth]] | ||
|- | |- | ||
| < | | <code>⍟</code> || [[Power (operator)|Repeat]] | ||
|} | |} | ||
|} | |} | ||
{{APL dialects}}[[Category:BQN| ]][[Category:Array languages]][[Category:Based array languages]][[Category:Compilers]][[Category:Leading axis languages]][[Category:Languages with tacit programming]] | {{APL dialects}}[[Category:BQN| ]][[Category:Array languages]][[Category:Based array languages]][[Category:Compilers]][[Category:Leading axis languages]][[Category:Languages with tacit programming]] |