Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/String-matching/Lasso/string-matching.lasso
Normal file
14
Task/String-matching/Lasso/string-matching.lasso
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
local(
|
||||
a = 'a quick brown peanut jumped over a quick brown fox',
|
||||
b = 'a quick brown'
|
||||
)
|
||||
|
||||
//Determining if the first string starts with second string
|
||||
#a->beginswith(#b) // true
|
||||
|
||||
//Determining if the first string contains the second string at any location
|
||||
#a >> #b // true
|
||||
#a->contains(#b) // true
|
||||
|
||||
//Determining if the first string ends with the second string
|
||||
#a->endswith(#b) // false
|
||||
Loading…
Add table
Add a link
Reference in a new issue