Witchcraft v0.5.0 Witchcraft.Functor.Protocol protocol

The basis of Witchcraft.Functor

Summary

Functions

Apply a function to every element in some collection, tree, or other structure

Types

t :: term

Functions

lift(data, function)

Specs

lift(any, (any -> any)) :: any

Apply a function to every element in some collection, tree, or other structure.

The collection will retain its structure (list, tree, and so on).