mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Add description that strings can be lexicographically compared with comparison operators
This commit is contained in:
parent
43b6288a46
commit
20f8f41ad5
@ -102,6 +102,11 @@ false
|
||||
# Printing is easy
|
||||
println("I'm Julia. Nice to meet you!")
|
||||
|
||||
# String can be compared lexicographically compared
|
||||
"good" > "bye" # => true
|
||||
"good" == "good" # => true
|
||||
"1 + 2 = 3" == "1 + 2 = $(1+2)" # => true
|
||||
|
||||
####################################################
|
||||
## 2. Variables and Collections
|
||||
####################################################
|
||||
|
Loading…
Reference in New Issue
Block a user