Skip to content

Instantly share code, notes, and snippets.

@freedomtowin
Created June 28, 2025 21:17
Show Gist options
  • Save freedomtowin/c5c527961fb18d893910da2eb16b6c0d to your computer and use it in GitHub Desktop.
Save freedomtowin/c5c527961fb18d893910da2eb16b6c0d to your computer and use it in GitHub Desktop.
Example of creating a Gist using Python
let vec_of_vecs = vec![vec![1, 2, 3], vec![4, 5, 6]];
let result = comp![x for vec in vec_of_vecs for x in vec if x > 1].collect::<Vec<_>>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment