Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created March 31, 2021 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/0ba65e17b71383f0b6e8926ffd9c590d to your computer and use it in GitHub Desktop.
Save rust-play/0ba65e17b71383f0b6e8926ffd9c590d to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
#![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