Stopmakingsenses

⚓ Rust    📅 2026-07-15    👤 surdeus    👁️ 1      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Stopmakingsenses
fn main() {
    let pow_of_two = |power| 2_i32.pow(power);
    let pow8 = pow_of_two(8);
    //pow8 is 256
    println!("pow8 is {pow8}");
}

(Playground)

2 posts - 2 participants

Read full topic

🏷️ Rust_feed