- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleLastIndexFunc (0.2 sec)
-
src/strings/example_test.go
fmt.Println(strings.LastIndexByte("Hello, world", 'o')) fmt.Println(strings.LastIndexByte("Hello, world", 'x')) // Output: // 10 // 8 // -1 } func ExampleLastIndexFunc() { fmt.Println(strings.LastIndexFunc("go 123", unicode.IsNumber)) fmt.Println(strings.LastIndexFunc("123 go", unicode.IsNumber)) fmt.Println(strings.LastIndexFunc("go", unicode.IsNumber)) // Output: // 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)