Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
14
Task/String-comparison/Scheme/string-comparison.scm
Normal file
14
Task/String-comparison/Scheme/string-comparison.scm
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