The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Get The Binary Ones And Zeros That Make Up An Integer In Rust

TODO: Pull subtitle into page object
Code
fn main() {
    let x = 5000;
    (0..32).for_each(|n| println!("{}", (x >> n) & 1));
}

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Get The Binary Ones And Zeros That Make Up An Integer In Rust

-- code
-- rust

fn main() {
    let x = 5000;
    (0..32).for_each(|n| println!("{}", (x >> n) & 1));
}


-- ref

- https://stackoverflow.com/a/74163801/102401 - this one 
shows a `.map()`` which is not what I needed. I turned it
intoa a `.for_each()``



-- blurb

-- categories
-- Rust 

-- metadata
-- date: 2023-04-08 18:20:29
-- id: 2oa9hgfw
-- site: aws
-- type: post
-- status: published