RosettaCodeData/Task/String-matching/J/string-matching-1.j
2015-02-20 09:02:09 -05:00

3 lines
72 B
Text

startswith=: ] -: ({.~ #)
contains=: +./@:E.~
endswith=: ] -: ({.~ -@#)