RosettaCodeData/Task/String-matching/EchoLisp/string-matching.echolisp
2016-12-05 23:44:36 +01:00

5 lines
214 B
Text

(string-suffix? "nette" "Antoinette") → #t
(string-prefix? "Simon" "Simon & Garfunkel") → #t
(string-match "Antoinette" "net") → #t ;; contains
(string-index "net" "Antoinette") → 5 ;; substring location