6 lines
141 B
Text
6 lines
141 B
Text
fcn repString(s){
|
|
foreach n in ([s.len()/2..0,-1]){
|
|
if(s.matches(s[n,*] + "*") and n*2<=s.len()) return(n);
|
|
}
|
|
return(False)
|
|
}
|