E
E
eegmak2021-03-11 21:38:05
Rust
eegmak, 2021-03-11 21:38:05

How to iterate through all unicode characters in a range in rust?

How to set the initial value and the final one, and in what way to iterate through the characters (for example, to write to a file)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2021-03-11
@eegmak

https://doc.rust-lang.org/std/ops/struct.Range.html

for c in 'a'..='z' {
    println!("{}", c);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question