String matching: Difference between revisions

Add min
(add task to ARM64 assembly Raspberry Pi)
(Add min)
Line 2,633:
ix = strfind(s1,s2); % ix is a vector containing the starting positions of s2 within s1
</lang>
 
=={{header|min}}==
One way might be:
{{works with|min|0.19.6}}
<lang min>(indexof 0 ==) :starts-with?
(indexof -1 !=) :contains?
((/ $/) swap 1 insert "" join regex ("") !=) :ends-with?
 
"minimalistic" "min" starts-with? puts!
"minimalistic" "list" contains? puts!
"minimalistic" "list" ends-with? puts!</lang>
{{out}}
<pre>
true
true
false
</pre>
 
=={{header|MiniScript}}==
1,827

edits