September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
14
Task/String-comparison/Astro/string-comparison.astro
Normal file
14
Task/String-comparison/Astro/string-comparison.astro
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
fun main(args): ## Array[Str]
|
||||
let a = "astro"
|
||||
let b = "astro"
|
||||
print
|
||||
..("Case sensitive comparisons:\n")
|
||||
..("astro and astro are equal = $(a == b)")
|
||||
..("astro and astro are not equal = $(a != b)")
|
||||
..("astro comes before astro = $(a < b)")
|
||||
..("astro comes after astro = $(a > b)")
|
||||
..("\nCase insensitive comparisons:\n")
|
||||
..("astro and astro are equal = $(a == b.lower())")
|
||||
..("astro and astro are not equal = $(a != b.lower())")
|
||||
..("astro comes before astro = $(a < b.lower())")
|
||||
..("astro comes after astro = $(a > b.lower())")
|
||||
Loading…
Add table
Add a link
Reference in a new issue