Longest common prefix: Difference between revisions
no edit summary
Drkameleon (talk | contribs) No edit summary |
|||
Line 663:
=={{header|Arturo}}==
<lang rebol>lcp: function [lst][
ret: ""
idx: 0
thisLetter: ""
loop
if idx=
if thisLetter="" -> thisLetter:
if thisLetter
]
▲ }
print lcp ["interspecies" "interstellar" "interstate"]
print
print
print
print
print
print
print
{{out}}
Line 702 ⟶ 698:
foo</pre>
=={{header|AutoHotkey}}==
|