View Source Ext.Functor protocol (ext v1.4.0)

Ext.Functor is a protocol for data that can be mapped over. Unlike Enum.map, which always returns a list, Ext.Functor.map returns the same data structure as the input. For example, mapping over a list returns a list while mapping over a map returns a map.

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

map(data, mapper)