It’s just like any other programming problem, break it into parts, and build it back up again.
“What’s a union?”
“Okay… then what’s a discriminated union?”
“Okay… let’s apply destructuring to one…”
“Okay… now what would analysis look like there given what I know?”
“Okay… how do we have the computer know what I know intuitively as a human given this context?”
“Okay! I think I got it!”
:-). If you’ve gotten this far with programming to understand the examples above, my guess is if you just take the time you can do it without the examples if you take it in small enough chunks :-).
Life’s all about what you apply your energy too
(And also, wonderful example :-) )
“What’s a union?”
“Okay… then what’s a discriminated union?”
“Okay… let’s apply destructuring to one…”
“Okay… now what would analysis look like there given what I know?”
“Okay… how do we have the computer know what I know intuitively as a human given this context?”
“Okay! I think I got it!”
:-). If you’ve gotten this far with programming to understand the examples above, my guess is if you just take the time you can do it without the examples if you take it in small enough chunks :-).
Life’s all about what you apply your energy too
(And also, wonderful example :-) )