Closed TornaxO7 closed 11 months ago
Here is the minimal example:
use ropey::Rope; fn main() { let string = Rope::from_str("Hello there!"); println!("{:?}", string.chars().collect::<String>()); println!("{:?}", string.chars().reversed().collect::<String>()); }
Output:
"Hello there!" ""
is that expected because I'd expect to get:
"Hello there!" "!ereht olleH"
Please read the documentation of the iterator module. Rev and reversed are not the same. Ropey iterators are cursors and not double ended. This is expected behavior.
oops. Sorry
Here is the minimal example:
Output:
is that expected because I'd expect to get: