- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for rhythms (0.14 sec)
-
src/strings/example_test.go
} func ExampleContainsFunc() { f := func(r rune) bool { return r == 'a' || r == 'e' || r == 'i' || r == 'o' || r == 'u' } fmt.Println(strings.ContainsFunc("hello", f)) fmt.Println(strings.ContainsFunc("rhythms", f)) // Output: // true // false } func ExampleCount() { fmt.Println(strings.Count("cheese", "e")) fmt.Println(strings.Count("five", "")) // before & after each rune // Output: // 3 // 5
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:05:38 UTC 2023 - 10.7K bytes - Viewed (0)