Skip to content

Function args with map :as destructuring doesn't support MapEntry args #34

Open
@jfhamlin

Description

@jfhamlin

Actual

user=> (defn x [& {:as opts}] (println opts))
#'user/x
user=> (x :x :y [:foo :bar])
invalid map. must have even number of inputs

Expected

user=> (defn x [& {:as opts}] (println opts))
#'user/x
user=> (x :x :y [:foo :bar])
{:x :y, :foo :bar}
nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions