Transforming Generators
Understand the reasons to transform generators and how to use the ?LET macro.
We'll cover the following...
Why transform generators?
To understand why we may need to transform generators, let’s take a look at an example. Using the queue
module, we may want to generate a first-in-first-out queue of key/value pairs. Just using tuples and lists won’t be enough to enforce the internal constraints of the data structure. In some cases, the data structure may be opaque, which means that we can’t or shouldn’t look into how it’s built, and rather just stick to the interface the module exposes. This is inconvenient at best. To solve this problem, PropEr exposes macros that ...
Access this course and 1400+ top-rated courses and projects.