Closed WhiteBlackGoose closed 3 years ago
Join
-> Inject
A more advanced example:
5
.With(out var sqr, 5 * 5)
.Inject(sqr)
.Apply((a, sqr) => sqr + a * sqr)
.Apply(a => a + 2)
.Apply(a => a / 6)
.Inject(sqr + 3)
.Apply((a, newSqr) => a < 0) switch
{
true => false,
false => true
};
It's Let
For local variables. For example,
(omg it's sooooooo sweet)