Packages

The && operator (and invoke macro) for use with |> and anonymous functions / captures

Current section

Files

Jump to
fn_expr lib example_and_and.ex
Raw

lib/example_and_and.ex

defmodule FnExpr.ExampleAndAnd do
require FnExpr
@moduledoc false
def combine(atom) do
atom
|> FnExpr.&&(Atom.to_string(&1) <> "__post")
|> FnExpr.&&(String.to_atom("pre__" <> &1))
end
end