RosettaCodeData/Task/Longest-common-substring/APL/longest-common-substring-1.apl

6 lines
123 B
APL
Raw Permalink Normal View History

2023-12-16 21:33:55 -08:00
lcs{
sb,/{¨,\}¨,\
match(sb(/)¨)/sb
((/=)¨match)/match
}