Lamp: Difference between revisions

From NARS2000
Jump to navigationJump to search
m (Paul Robinson moved page Symbol Lamp to Lamp: now functional)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
<h1> {lamp} &mdash; Comment Indicator &mdash; Keystroke ALT+, (Comma) &mdash; Character 9053 or x235D</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, thumb,</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 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.
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. The <big>{lamp}</big> symbol is the functional equivalent of // in C or Object Pascal, or ! in Fortran.
 
==Example==
==Example==
<code><big>
<code><big>
Line 16: Line 19:
</big></code>
</big></code>


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

Latest revision as of 09:46, 20 October 2024

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

Alternate Names

This symbol is also known as comment, thumb, 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. The symbol is the functional equivalent of // in C or Object Pascal, or ! in Fortran.

Example

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


See Also
System Commands System Variables and Functions Operators


Keyboard
Alt+Shift
Alt ¨ ¯ < > × ÷
Shift ~ ! @ # $ % ^ & * ( ) _ +
Key ` 1 2 3 4 5 6 7 8 9 0 - =
Alt+Shift
Alt ? § π
Shift Q W E R T Y U I O P { } |
Key q w e r t y u i o p [ ] \
Alt+Shift
Alt
Shift A S D F G H J K L : "
Key a s d f g h j k l ; '
Alt+Shift χ
Alt
Shift Z X C V B N M < > ?
Key z x c v b n m , . /
NARS 2000 Lang
Tool
Bar
+ - × ÷ * ! ? |
< = >
~ § π .. ,
/ \ ¨ .
_ ¯
Second Row i j k i j k l g p r v x

[[Category:Mouse Group {{{1}}}|{{{2}}}]]