Skip to content

Adding .map and .flatMap to trait Binding #133

@lxohi

Description

@lxohi

Map and FlatMap are now classes inside com.thoughtworks.binding.Binding which makes them a little bit difficult to use.

And Scala compiler also fails to do the type inference because upstream & f param are inside the same pair of parentheses.

So currently I have some code like this:

inkBar(new BMap[(Int, Int), Int](offsetWidth, _._1), new BMap[(Int, Int), Int](offsetWidth, _._2)).bind

Is it possible to add .map and .flatMap to trait Binding?

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