PreviousNext

The Lazy functor

by bill-s, 2018-09-17T13:50:34.707Z

This article is an instalment in an article series about functors. Previous articles have covered Maybe, rose trees, and other functors. This article provides another example. Most programming languages are eagerly evaluated. Sometimes, however, you'd like to defer execution of an expensive operation. On .NET, you can use Lazy to achieve that goal. This generic type, like so many others, forms a functor.

Read More