Lazy evaluation, Higher-order functions, and Currying

A. lazy evaluation

Lazy evaluation can be defined as an approach that delays the value of an expression until it’s needed (tutorialspoint, n.d) the primary purpose of using lazy evaluation is to gain more performance, taking Python programming language for instance; lazy evaluation was one of the many things that were improved in Python3, for example, a simple code like following:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store