Closed
Description
To start with, I'm relatively new to the language, and I'm trying to use &str.splitn()
. According to what I could determine from the API, it should have an nth()
member, yet it doesn't seem to. It also seems to be missing other members too.
My test is:
let var = "meow".splitn(1, "e").nth(1);
Which gives me the error:
error: type `core::str::SplitN<'_, &str>` does not implement any method in scope named `nth`
This however allows it to work: http://is.gd/Vdjy8i (Thanks to Steveklabnik from the rust IRC channel)
This is using rustc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)
.