mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 04:04:29 +03:00
📝 Add "+" output (#5020)
This commit is contained in:
parent
6a7cfde3f7
commit
8dd93f14df
@ -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