Compute Intermediate Values In A With Construct
Last updated
Was this helpful?
Last updated
Was this helpful?
The expressions you use in a with
construct do not have to contain the <-
syntax. You can pattern match and bind values along the way as well.
In the above (sorta contrived) example we were able to construct a URL in the middle of the series of expressions.
The values we compute inline will be closed into the with
construct, so they won't leak.
See the for more details.