Garden 🌻

String::index_of

Find the first index of needle in this. Positions are in character offsets, not bytes.

"abc".index_of("c") //-> Some(2)
Source Codepublic method index_of(this: String, needle: String): Option<Int> {
  __BUILTIN_IMPLEMENTATION
}