nandi/rustnimpublic Fork 0
4e4d09dcdd22d17ba510de5639fc3a952ac73f6e
Commits
Clone
git clone https://git.rickub.com/nandi/rustnim.git
git clone ssh://git@rickub.com/nandi/rustnim.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Scaffold rustnim: Rust->Nim transpiler, type mapping 1a218c2 · on 4e4d09dcdd22d17ba510de5639fc3a952ac73f6e · nandi · 10h ago
02-if-block.rs · 7 lines · 86 BRust Blame HistoryRaw
1
2
3
4
5
6
7
fn f(a: i32) -> i32 {
    let mut s = a;
    if s < 0 {
        s = -s;
    }
    s
}