Skip to content

Instantly share code, notes, and snippets.

View bfeitknecht's full-sized avatar
🍋
_ => panic!();

Basil Feitknecht bfeitknecht

🍋
_ => panic!();
View GitHub Profile
@kepler-5
kepler-5 / comp_multi.rs
Last active March 17, 2025 23:19
Python comprehension proc macro that handles multiple nested for-if-clauses, flattening nested structure
// This is free and unencumbered software released into the public domain.
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
// In jurisdictions that recognize copyright laws, the author or authors
// of this software dedicate any and all copyright interest in the
// software to the public domain. We make this dedication for the benefit