Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
asherah
· 3y ago · 0 comments
if x is `Some`, then `y` is set to the inner value and the following block occurs. you can also use this with other enums - i don't remember off the top of my head if it works for all enums, but you can at least also use it with `Result`
Comments
[–]
jeffdn
3y ago
It absolutely works for all patterns!