Use string as a function

When a string s is used as a function, the argument should also be a string t, and the index of occurrence of s as a substring of t is returned.

>> x = "The flying pig";
>> y = "pig";
>> y(x)

   12



oz 2009-12-22