March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
14
Task/String-comparison/Scheme/string-comparison.ss
Normal file
14
Task/String-comparison/Scheme/string-comparison.ss
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
;; Comparing two strings for exact equality
|
||||
(string=? "hello" "hello")
|
||||
|
||||
;; Comparing two strings for inequality
|
||||
(not (string=? "hello" "Hello"))
|
||||
|
||||
;; Checking if the first string is lexically ordered before the second
|
||||
(string<? "bar" "foo")
|
||||
|
||||
;; Checking if the first string is lexically ordered after the second
|
||||
(string>? "foo" "bar")
|
||||
|
||||
;; case insensitive comparison
|
||||
(string-ci=? "hello" "Hello")
|
||||
Loading…
Add table
Add a link
Reference in a new issue