summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPranit Bauva <pranit.bauva@gmail.com>2015-11-04 22:15:59 +0530
committerPranit Bauva <pranit.bauva@gmail.com>2015-11-04 22:15:59 +0530
commit20f8f41ad5631f6638d42aca88ad2e0590abbccb (patch)
tree3e84e1409d79ff39286cb1ee4207070946f2c7ea
parent43b6288a46ed011d8343f6e03e469b9325ab8ff0 (diff)
Add description that strings can be lexicographically compared with comparison operators
-rw-r--r--julia.html.markdown5
1 files changed, 5 insertions, 0 deletions
diff --git a/julia.html.markdown b/julia.html.markdown
index cba7cd45..2fedcfd8 100644
--- a/julia.html.markdown
+++ b/julia.html.markdown
@@ -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
####################################################