We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Witchcraft.Chain.do_notation/2
chainer
As far as I see, there are multiple places where second argument of chainer is used:
witchcraft/lib/witchcraft/chain.ex
Lines 410 to 431 in 73e3cc6
Instead >>> (Witchcraft.Chain.chain) is used.
>>>
Witchcraft.Chain.chain
Is it designed to be so, or it is a typo?
PS IMO it should be
def do_notation(input, chainer) do input |> normalize() |> Enum.reverse() |> Witchcraft.Foldable.left_fold(fn continue, {:let, _, [{:=, _, [assign, value]}]} -> quote do: unquote(value) |> (fn unquote(assign) -> unquote(continue) end).() continue, {:<-, _, [assign, value]} -> quote do apply(unquote(chainer), [unquote(value), fn unquote(assign) -> unquote(continue) end]) end continue, value -> quote do apply(unquote(chainer), [unquote(value), fn _ -> unquote(continue) end]) end end) end
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
As far as I see, there are multiple places where second argument of
chainer
is used:witchcraft/lib/witchcraft/chain.ex
Lines 410 to 431 in 73e3cc6
Instead
>>>
(Witchcraft.Chain.chain
) is used.Is it designed to be so, or it is a typo?
PS IMO it should be
The text was updated successfully, but these errors were encountered: