pipeline.ex
October 20, 2015 ยท View on GitHub
defmodule Pipeline do defmacro using(_) do quote do import Kernel, except: [~>>: 2] import Pipeline end end
defmacro lhs ~>> rhs do quote do case unquote(lhs) do {:ok, value} -> value |> unquote(rhs) other -> other end end end end