러스트로 간단하게 별찍기 문제 풀었는데 파이썬이랑은 다르게 repeat()이란 함수란 게 있어서 신기했음...

# Python starrrrrrrs
for i in range(1, 4):
    print("*"*i)
// Rust starrrrrs
fn main() {
    for _i in 1..4 {
        println!("{}", "*".repeat(_i))
    }
}
1

If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/01997a08-3075-7b30-aba2-8b2633150e0e on your instance and quote it. (Note that quoting is not supported in Mastodon.)