# In reply to @Elegantbeef "`import std/sugar` use `collect`": like this? # Declaring different types of patterns. let NON_RULE_PATTERNS = collect: for pattern in PATTERNS: if "rules" in pattern: pattern