-
-
Save rust-play/0ba65e17b71383f0b6e8926ffd9c590d to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(unused)] | |
use std::collections::HashSet; | |
fn main() { | |
let mut rows: Vec<_> = (0..81).map(|_| HashSet::<u8>::new()).collect(); | |
rows.get(20).as_mut().unwrap().insert(5); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment