Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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