Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

First Initial

Get the first character of the string "Rustacean" and print it.

Expected output:

text
R

Hints:

  • Use .chars() to get an iterator of characters
  • Use .next() to grab the first character
  • .chars().next().unwrap() gives you the first character
rust
fn main() {
}