Skip to content
New issue

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

multiplex broken with sort-by #50

Open
den1k opened this issue Aug 18, 2022 · 0 comments
Open

multiplex broken with sort-by #50

den1k opened this issue Aug 18, 2022 · 0 comments

Comments

@den1k
Copy link

den1k commented Aug 18, 2022

;; this works
(sequence
  (comp (x/by-key :foo (x/into []))
        (x/sort-by first))
  [{:foo 2} {:foo 1} {:foo 1}])
=> ([1 [{:foo 1} {:foo 1}]] [2 [{:foo 2}]])

;; this breaks
(sequence
  (comp (x/by-key :foo (x/into []))
        (x/multiplex [(x/sort-by first)]))
  [{:foo 2} {:foo 1} {:foo 1}])
Execution error (ArityException) at net.cgrand.xforms/multiplex$fn$reify$fn (xforms.cljc:710).
Wrong number of args (3) passed to: net.cgrand.xforms/sort/fn--25064/fn--25065
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant