View Source Babel.Applicable protocol (Babel v1.0.1)

The protocol which enables Babel.apply/2.

Any custom Babel.Step will have to implement this protocol. It's suggested to use Babel.Step as that will derive an implementation. See Babel.Step for further details.

Summary

Types

@type t() :: t(any())
@type t(output) :: t(any(), output)
@type t(_input, _output) :: any()

Functions

@spec apply(t(input, output), Babel.data()) :: Babel.Trace.t(output)
when input: Babel.data(), output: any()