Skip to content

Please release fmap fix #209

Closed
Closed
@dszakallas

Description

@dszakallas

Hey all

using version 2.1.0, I noticed that in nested fmaps inner functors are coerced to the outermost's type or so:

user> (use 'cats.core)
nil
user> (use 'cats.builtin)
user> (fmap (fn [v] (fmap #(* 2 %) v)) #{[1 2 2]})
#{#{4 2}}

has this been fixed with #192 ?

I tried with the latest master (6e6ff13), and it seems that this works as expected now:

user> (fmap (fn [v] (fmap #(* 2 %) v)) #{[1 2 2]})
#{[2 4 4]}

However the latest release is still 2.1.0, which predates this fix.
When will be this released?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions