I came across what I thought was a pattern in test code. At first glanced it looked to me like a pattern I had never seen before, but what exactly is it?
I am adding this entry for folks who may run into same issue.
\_ ->
is an anonymous function that takes one argument, but it does not use the argument in the function body, so instead of naming it like \a ->
is just discards the argument using _
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With