mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
core: remove old definition of String.ends-with? (thanks @davidrusu)
This commit is contained in:
parent
e9d04ce1b9
commit
0328b8a28a
@ -85,9 +85,6 @@
|
||||
lsub (length sub)]
|
||||
(and (>= ls lsub) (= sub &(suffix s (- ls lsub))))))
|
||||
|
||||
(defn ends-with? [s sub]
|
||||
(= sub &(suffix s (- (length s) (length sub)))))
|
||||
|
||||
(doc zero "The empty string.")
|
||||
(defn zero [] @"")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user