AR
а кстати, мб описаный кейс и решит
Size: a a a
AR
LL
(->>
{:items [{:id 2 :count 2}
{:id 1 :count 3}
{:id 1 :count 4}]}
(sp/transform [:items (sp/filterer #(= 1 (:id %))) sp/FIRST :count] inc))
{:items [{:id 2, :count 2} {:id 1, :count 4} {:id 1, :count 4}]}
LL
focus
и дефолтные put_in
, update_in
и get_in
ŹR
LL
LL
List.index
ŹR
LL
:error
ŹR
ŹR
ŹR
LL
update
можноp = path :gender / :cluster / :category)
something = %{gender: %{cluster: %{category: []}}}
new_something = Pathex.over(p, something, & [:hello | &1]
AB
ŹR
update
можноp = path :gender / :cluster / :category)
something = %{gender: %{cluster: %{category: []}}}
new_something = Pathex.over(p, something, & [:hello | &1]
ŹR
ŹR
ŹR
ŹR
LL