Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Does Find() work on a map? #165

@jeffsaremi

Description

@jeffsaremi

I can't get this to work:

	mymap := map[string]string {
	"one": "1",
	"two": "2",
	}
  key, value := funk.Find(mymap, func(k,v string) bool {
    return v == "2"
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions