Difference between revisions of "Dot"

From APL Wiki
Jump to navigation Jump to search
m (Smaller fraction)
m
 
Line 7: Line 7:
 
* In [[SHARP APL]], with a function left operand and an array right operand, called ''ply'', is used for the [[Power Operator]] (<source lang=apl inline>f⍣k</source> in several other dialects).
 
* In [[SHARP APL]], with a function left operand and an array right operand, called ''ply'', is used for the [[Power Operator]] (<source lang=apl inline>f⍣k</source> in several other dialects).
 
* In dialects that support [[object oriented programming]], for example [[APLX]] and [[Dyalog APL]], the dot is used to access members of objects.
 
* In dialects that support [[object oriented programming]], for example [[APLX]] and [[Dyalog APL]], the dot is used to access members of objects.
* In [[NARS2000]], two immediately adjacent dots, <source lang=apl inline>..</source>, form a bi-glyph, and represents the [[Sequence]] function (represented by the ellipsis, <source lang=apl inline>…<⍳0</source> in [[dzaima/APL]] and [[Extended Dyalog APL]]).
+
* In [[NARS2000]], two immediately adjacent dots, <source lang=apl inline>..</source>, form a [[bi-glyph]], and represents the [[Sequence]] function (represented by the ellipsis, <source lang=apl inline>…<⍳0</source> in [[dzaima/APL]] and [[Extended Dyalog APL]]).
 
Due to its use in numeric constants, letting <source lang=apl inline>.</source> be a dyadic operator that takes numeric operands or a function that takes numeric arguments, is potentially problematic or at least confusing:
 
Due to its use in numeric constants, letting <source lang=apl inline>.</source> be a dyadic operator that takes numeric operands or a function that takes numeric arguments, is potentially problematic or at least confusing:
 
<source lang=apl>
 
<source lang=apl>

Latest revision as of 15:40, 7 May 2021

.

The glyph dot or period refers to the . character. It represents several unrelated concepts, some derived from traditional mathematical notation. The dot is one of the most overloaded APL symbols:

Due to its use in numeric constants, letting . be a dyadic operator that takes numeric operands or a function that takes numeric arguments, is potentially problematic or at least confusing:

      4.6
4.6
      4..6
4 5 6 
      4...10 ⍝ this parses as 4 .. 0.10
4 3 2 1
      4. .10
4 0.1
      4 . . 10
SYNTAX ERROR
      4 . . 10
              
Works in: NARS2000
APL glyphs [edit]
Information GlyphTyping glyphs (on Linux) ∙ UnicodeFontsMnemonicsOverstrikes
Individual glyphs Jot () ∙ Right Shoe () ∙ Up Arrow () ∙ Zilde () ∙ High minus (¯) ∙ Dot (.) ∙ Del ()