Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/Special-characters/Lasso/special-characters.lasso
Normal file
21
Task/Special-characters/Lasso/special-characters.lasso
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# defined local ie. #mylocal will fail if not defined
|
||||
$ defined variable ie. $myvar will fail if not defined
|
||||
= assignment
|
||||
:= assign as return assigned value
|
||||
? ternary conditional true ? this
|
||||
| ternary else false ? this | that
|
||||
|| or
|
||||
&& and
|
||||
! negative operator
|
||||
{ open capture
|
||||
} close capture
|
||||
=> specify givenblock / capture
|
||||
-> invoke method: mytype->mymethod
|
||||
& retarget: mytype->mymethod& // returns mytype
|
||||
^ autocollect from capture: {^ 'this will be outputted' ^}
|
||||
:: tag prefix, ie. ::mytype->gettype // returns myype
|
||||
:: type constraint, ie. define mymethod(p::integer) => #i * 2
|
||||
\ escape method: ie. \mymethod->invoke(2)
|
||||
// comment
|
||||
/* open comment
|
||||
*/ close comment
|
||||
Loading…
Add table
Add a link
Reference in a new issue