update: foundations

This commit is contained in:
Inanc Gumus
2019-05-11 16:37:39 +03:00
parent f8aac2c332
commit 60fd45cb33
10 changed files with 282 additions and 43 deletions

View File

@ -32,9 +32,11 @@ func main() {
for i, w := range words {
q, w = strings.ToLower(q), strings.ToLower(w)
if strings.Contains(w, q) {
fmt.Printf("#%-2d: %q\n", i+1, w)
if !strings.Contains(w, q) {
continue
}
fmt.Printf("#%-2d: %q\n", i+1, w)
}
}
}