mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
📝 Add "+" output
This commit is contained in:
parent
6a7cfde3f7
commit
c149bc6351
@ -137,8 +137,8 @@ filename: learnphix.exw
|
||||
// Operators are always consistant; never overloaded.
|
||||
|
||||
-- the + operator ''always adds''
|
||||
? 2+7
|
||||
? 'A' + 32
|
||||
? 2+7 --> 9
|
||||
? 'A' + 32 --> 97
|
||||
|
||||
-- the & operator ''always concatenates''
|
||||
? 2 & 7 --> {2,7}
|
||||
|
Loading…
Reference in New Issue
Block a user