[ create a new paste ] login | about

Link: http://codepad.org/QYdpi3iX    [ raw code | output | fork ]

nepta - Lua, pasted on Nov 5:
1
2
3
4
5
6
s = "programming-idioms.org"
prefix = "pro"

b = s:find(prefix) == 1

print(b)


Output:
1
true


Create a new paste based on this one


Comments: