Lamp: Difference between revisions

From NARS2000
Jump to navigationJump to search
Paul Robinson (talk | contribs)
No edit summary
Paul Robinson (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
<h1> {lamp} &mdash; Comment Indicator &mdash; Keystroke ?ALT+X &mdash; Character 0000</h1>
<h1> {lamp} &mdash; Comment Indicator &mdash; Keystroke ALT+, (Comma) &mdash; Character 9053 or x235D</h1>
 
[[File:APLKB-Lamp.png]]
==Alternate Names==
==Alternate Names==
This symbol is also known as <big>comment</big> or APL text symbol '''&#123;comment}''' .
This symbol is also known as <big>comment</big> or APL text symbol '''&#123;comment}''' .


==Usage==
==Usage==
The lamp symbol <big>{lamp}</big> is used to add a comment to a typed-in line, whether an immediate execution statement given to the Session Manager or entered into the text of a [[functions|function]]. All characters after {lamp} are ignored until the end of the line. The [[diamond]] (<big><big>{diamond}</big></big>) operator cannot be used to start a new line after a <big>{lamp}</big> symbol is used.
==Example==
==Example==
==See Also==
<code><big>
 
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yes←10 ⋄ yes←20
 
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yes
:20
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yes←10 ⍝ more ⋄ yes←20
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yes
:10
</big></code>


{{Language Toolbar}}
{{Article footer}}
[[Category:Mouse Group 11|L]]
{{Symbol footer|11|L}}
[[Category:Symbols|L]]

Latest revision as of 02:58, 14 March 2013

⍝ — Comment Indicator — Keystroke ALT+, (Comma) — Character 9053 or x235D

Alternate Names

This symbol is also known as comment or APL text symbol {comment} .

Usage

The lamp symbol ⍝ is used to add a comment to a typed-in line, whether an immediate execution statement given to the Session Manager or entered into the text of a function. All characters after ⍝ are ignored until the end of the line. The diamond (⋄) operator cannot be used to start a new line after a ⍝ symbol is used.

Example

      yes←10 ⋄ yes←20
      yes
20
      yes←10 ⍝ more ⋄ yes←20
      yes
10


See Also
System Commands System Variables and Functions Operators


Keyboard
A+S ⍪ ≡ ≢ ⍒ ⍋ ⌽ ⍉ ⊖ ⍟ ⍱ ⍲ ⍠ ⌹
Alt ⋄ ¨ ¯ < ≤ ∅ ≥ > ≠ ∨ ∧ × ÷
Sh ~ ! @ # $ % ^ & * ( ) _ +
Key ` 1 2 3 4 5 6 7 8 9 0 - =
A+S ⍷ √ ⍨ ⍸ ⍥ ⍣ ⍞ ⍬ ⊣
Alt ? ⍵ ∊ ⍴ § ↑ ↓ ⍳ ○ π ← → ⊢
Sh Q W E R T Y U I O P { } |
Key q w e r t y u i o p [ ] \
A+S ∫ ∂ ⌻ ⍢ ⍙ ⍤ ⍫ ⌷
Alt ⍺ ⌈ ⌊ ∞ ∇ ∆ ∘ ‼ ⎕ ⍎ ⍕
Sh A S D F G H J K L : "
Key a s d f g h j k l ; '
A+S ⊆ ⊇ χ ⍡ ⍭ ⊙
Alt ⊂ ⊃ ∩ ∪ ⊥ ⊤ ⍦ ⍝ ⍀ ⌿
Sh Z X C V B N M < > ?
Key z x c v b n m , . /
{{#ifeq:{{{1}}}|4||title="match" style="border-width:thick; border-color:blue; background-color:yellow;"|≡ {{#ifeq:{{{1}}}|7||title="iota" style="border-width:thick; border-color:blue; background-color:yellow;" |⍳ {{#ifeq:{{{1}}}|9||title="slash" style="border-width:thick; border-color:blue; background-color:yellow;" |/ {{#ifeq:{{{1}}}|11||title="diamond" style="border-width:thick; border-color:blue; background-color:yellow;" |⋄ {{#switch: {{{1}}}
NARS 2000 Lang
Tool
Bar

{{#ifeq:{{{1}}}|1||title="assign" style="border-width:thick; border-color:blue; background-color:yellow;" |←

→ bgcolor=cyan title="assign" |← → }}

{{#ifeq:{{{1}}}|2||title="plus" style="border-width:thick; border-color:blue; background-color:yellow;" |+

- × ÷ * ⍟ ⌹ ○ ! ? √ bgcolor=cyan title="plus" |+ - × ÷ * ⍟ ⌹ ○ ! ? √ }}

{{#ifeq:{{{1}}}|3||title="mod" style="border-width:thick; border-color:blue; background-color:yellow;" ||

⌈ ⌊ ⊥ ⊤ ⊣ ⊢
⌈ ⌊ ⊥ ⊤ ⊣ ⊢
≢ < ≤ = ≥ > ≠ bgcolor=cyan title="match" |≡ ≢ < ≤ = ≥ > ≠ }}

{{#ifeq:{{{1}}}|5||title="down caret" style="border-width:thick; border-color:blue; background-color:yellow;" |∨

∧ ⍱ ⍲ bgcolor=cyan title="down caret" |∨ ∧ ⍱ ⍲ }}

{{#ifeq:{{{1}}}|6||title="take" style="border-width:thick; border-color:blue; background-color:yellow;" |↑

↓ ⊂ ⊃ ⌷ ⍋ ⍒
↓ ⊂ ⊃ ⌷ ⍋ ⍒
∊ ⍸ ⍷ ∪ ∩ ⊆ ⊇ ~ § π .. bgcolor=cyan title="iota" |⍳ ∊ ⍸ ⍷ ∪ ∩ ⊆ ⊇ ~ § π .. }}

{{#ifeq:{{{1}}}|8||title="comma" style="border-width:thick; border-color:blue; background-color:yellow;" |,

⍪ ⍴ ⌽ ⊖ ⍉
⍪ ⍴ ⌽ ⊖ ⍉
\ ⌿ ⍀ ⊙ ¨ ⍨ ⍤ ⍡ ⍥ ⍦ . ∘ ⍠ ‼ ⌻ ∂ ∫ bgcolor=cyan title="slash" |/ \ ⌿ ⍀ ⊙ ¨ ⍨ ⍤ ⍣ ⍡ ⍥ ⍦ . ∘ ⍠ ‼ ⌻ ∂ ∫ }}

{{#ifeq:{{{1}}}|10||title="quotequad" style="border-width:thick; border-color:blue; background-color:yellow;" |⍞

⎕ ⍎ ⍕
⎕ ⍎ ⍕
⍝ ∇ ∆ ⍙ _ ⍺ ⍵ bgcolor=cyan title="diamond" |⋄ ⍝ ∇ ∆ ⍙ _ ⍺ ⍵ }}

{{#ifeq:{{{1}}}|12||title="neg" style="border-width:thick; border-color:blue; background-color:yellow;" |¯

⍬ ∞ title="neg" |¯ ⍬ ∞ ∅
colspan=8 |Second Row i j k a b e g p r v x z colspan=8 |Second Row i j k a b e g p r v x z colspan=8 |Second Row i j k a b e g p r v x z colspan=6 |Second Row i j k i j k l g p r v x

}}

{{#ifeq:{{{1}}}|0| |[[Category:Mouse Group {{{1}}}|{{{2}}}]]}}


{{#ifeq:11|0| |}}