Packages

A functional optics library. Create and compose lenses to view, set, and modify data inside arbitrarily nested maps, lists, and tuples.

Current section

Files

Jump to
focus lib focus.ex
Raw

lib/focus.ex

defmodule Focus do
@moduledoc """
Shared elements for the Focus modules.
"""
@type product :: map | struct | tuple
@type sum :: list
@type traversable :: product | sum
@type maybe :: {:ok, any} | {:error, any}
end