3 lines
158 B
Text
3 lines
158 B
Text
fcn f(text,p){ if(Void!=(n:=text.find(p)))println("Contained @",n) else println("Nope") }
|
|
f("foobar","ob") //--> Contained @2
|
|
f("foobar","food") //--> Nope
|