Basic Examples 
(2)
 

Get the longest common prefix of strings:
In[1]:=
[◼]
LongestCommonPrefix
[{"the cat in the hat","the cat insists"}]
Out[1]=
the cat in
In[2]:=
[◼]
LongestCommonPrefix
[{"the cat in the hat","the cat insists","the catapult is inferior to the trebuchet"}]
Out[2]=
the cat
———
Get the longest common prefix of lists:
In[1]:=
[◼]
LongestCommonPrefix
[{{1,2,3},{1,2,x}}]
Out[1]=
{1,2}
In[2]:=
[◼]
LongestCommonPrefix
[{{a,b,c},{a,b,1,2},{a,b,"hello"}}]
Out[2]=
{a,b}
In[3]:=
[◼]
LongestCommonPrefix
[{Fibonacci[Range[3,10]],Prime[Range[10]]}]
Out[3]=
{2,3,5}

Scope 
(2)
 


Options 
(7)
 


Applications 
(2)
 


Properties and Relations 
(6)
 


Possible Issues 
(4)
 


Neat Examples 
(2)
 
