Description Usage Arguments Details Value
This is a base "object" for building lists.
1 | empty_list(selector)
|
selector |
A function to return either the head, tail or empty status of a list |
To quote Steve Losh, a list is a function that knows how to return its head, tail and whether it's empty. Empty lists serve an important part of this construction, since it gives us the ability to mark the "end" of our nested functions that create the list. In practice, we don't usually call the function with its argument. Instead, other functions will need to access this argument to implement various properties of lists.
A closure with the fl
class added. The closure can be used to access
different properties of the list: either the head, tail or its empty status.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.