Anonymous user
Rep-string: Difference between revisions
→{{header|Dyalect}}
m (→{{header|Quackery}}: bug fix) |
|||
Line 1,119:
var x = s.len() / 2
while x > 0 {
if s.startsWith(s.
return x
}
Line 1,143:
for s in m {
if (rep(s) is n) && n > 0 {
print("\(s) \(n) rep-string \(s.
} else {
print("\(s) not a rep-string")
|