Uses a delimiter as the `split' for a compound prefix match check.
See also: `compound-prefix-match?'
(defn delimited-compound-prefix-match?
"Uses a delimiter as the `split' for a compound prefix match check.
See also: `compound-prefix-match?'"
([delimiter prefix target]
(compound-prefix-match? #(.split #^String % (str "[" (java.util.regex.Pattern/quote delimiter) "]") -1)
prefix
target)))
Comments top
No comments for delimited-compound-prefix-match?. Log in to add a comment.