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
As @ffloyd mentioned in #20, I see some weird behavior with all/0 lens:
import Pathex data = [ %{ "a" => 1 }, %{ "a" => 2 } ] all_a = Pathex.Lenses.all() ~> path("a") Pathex.get(data, all_a) |> IO.inspect(label: "get") Pathex.delete!(data, all_a) |> IO.inspect(label: "delete!")
And as result get/2 works, but delete/2 fails:
** (Pathex.Error) Couldn't find element Path: all() ~> path("a") Structure: [%{"a" => 1}, %{"a" => 2}] (stdlib 3.17.2) erl_eval.erl:685: :erl_eval.do_apply/6 (stdlib 3.17.2) erl_eval.erl:893: :erl_eval.expr_list/6 (stdlib 3.17.2) erl_eval.erl:408: :erl_eval.expr/5 (elixir 1.14.0) lib/module/parallel_checker.ex:100: Module.ParallelChecker.verify/1
The text was updated successfully, but these errors were encountered:
Pathex.delete!
all
Bug #21 fixed
f09586c
All lens unrolling All lens extra testing CODE_OF_CONDUCT .tool-versions removed
6c70c0b
Fixed in v2.4.2
Sorry, something went wrong.
No branches or pull requests
As @ffloyd mentioned in #20, I see some weird behavior with all/0 lens:
And as result get/2 works, but delete/2 fails:
The text was updated successfully, but these errors were encountered: