Like: Difference between revisions

From The K Language Wiki
Content added Content deleted
("More lowercasing")
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
 
Line 16: Line 16:
</pre>
</pre>


[[Category:Named verbs]]
[[Category:Verbs]]
[[Category:Verbs]]
[[Category:Named verbs]]
[[Category:Primitives]]
[[Category:Primitives]]

Latest revision as of 06:41, 9 July 2022

Like
x like y
Supported in K7

like takes a pattern string x and string y, and performs a pattern match on it similar to SQL's LIKE keyword.

* indicates a wildcard(any number of letters) in the pattern.

? indicates a wildcard(single letter) in the pattern.

 "abc" like "abc"
1
 "abc" like "*abc"
1
 "dsfasfsdabc" like "*abc"
1