- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for LastIndexFunc (0.05 sec)
-
src/bytes/example_test.go
// Output: // 3 // 8 // -1 } func ExampleLastIndexFunc() { fmt.Println(bytes.LastIndexFunc([]byte("go gopher!"), unicode.IsLetter)) fmt.Println(bytes.LastIndexFunc([]byte("go gopher!"), unicode.IsPunct)) fmt.Println(bytes.LastIndexFunc([]byte("go gopher!"), unicode.IsNumber)) // Output: // 8 // 9 // -1 } func ExampleMap() {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 12 16:07:54 UTC 2025 - 16.5K bytes - Viewed (0) -
src/bytes/bytes.go
func IndexFunc(s []byte, f func(r rune) bool) int { return indexFunc(s, f, true) } // LastIndexFunc interprets s as a sequence of UTF-8-encoded code points. // It returns the byte index in s of the last Unicode // code point satisfying f(c), or -1 if none do. func LastIndexFunc(s []byte, f func(r rune) bool) int { return lastIndexFunc(s, f, true) } // indexFunc is the same as IndexFunc except that if
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Sep 03 14:04:47 UTC 2025 - 35.5K bytes - Viewed (0)