7 lines
254 B
Text
7 lines
254 B
Text
fcn f(text,p){
|
|
if( Void!=(n:=text.rfind(p)) and n+p.len()==text.len() )
|
|
println("tail gunner") else println("Nope")
|
|
}
|
|
f("foobar","r"); f("foobar","ar"); //--> tail gunners
|
|
f("foobar","ob"); //--> Nope
|
|
f("foobarfoobar","bar"); //--> tail gunner
|