RosettaCodeData/Task/String-matching/J/string-matching-1.j
2023-07-01 13:44:08 -04:00

3 lines
72 B
Text

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