Skip to content

Dict.union (Dict.singleton, Dict.singleton) #342

@gampleman

Description

@gampleman

What the rule should do:

Dict.union (Dict.singleton "foo" "bar") (Dict.singleton "some" other)

-->

Dict.fromList [( "foo", "bar" ), ( "some", other )]

---

Dict.union (Dict.singleton "foo" "bar") (Dict.fromList [("some", other)])

-->


Dict.fromList [( "foo", "bar" ), ( "some", other )]

this already happens for Dict.fromList, but this expands it to work with Dict.singleton. Basically anywhere we use Dict.fromList, we should also work with Dict.singleton.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions