RosettaCodeData/Task/String-matching/J/string-matching-1.j

4 lines
72 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
startswith=: ] -: ({.~ #)
contains=: +./@:E.~
endswith=: ] -: ({.~ -@#)