{"id":20334915,"url":"https://github.com/mdb/funcy","last_synced_at":"2026-06-11T14:31:12.160Z","repository":{"id":65339098,"uuid":"579116197","full_name":"mdb/funcy","owner":"mdb","description":"A minimal Go package providing a few functional utilities.","archived":false,"fork":false,"pushed_at":"2023-01-17T15:06:06.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-04T02:51:12.832Z","etag":null,"topics":["functional-programming","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-16T17:45:30.000Z","updated_at":"2022-12-16T20:29:22.000Z","dependencies_parsed_at":"2023-02-10T10:16:00.860Z","dependency_job_id":null,"html_url":"https://github.com/mdb/funcy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mdb/funcy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Ffuncy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Ffuncy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Ffuncy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Ffuncy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdb","download_url":"https://codeload.github.com/mdb/funcy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdb%2Ffuncy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34204177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["functional-programming","go","golang"],"created_at":"2024-11-14T20:38:34.968Z","updated_at":"2026-06-11T14:31:12.141Z","avatar_url":"https://github.com/mdb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/mdb/funcy/actions/workflows/ci.yaml/badge.svg)](https://github.com/mdb/funcy/actions/workflows/ci.yaml) [![PkgGoDev](https://pkg.go.dev/badge/github.com/mdb/funcy)](https://pkg.go.dev/github.com/mdb/funcy) [![Go Report Card](https://goreportcard.com/badge/github.com/mdb/funcy)](https://goreportcard.com/report/github.com/mdb/funcy)\n\n# funcy (\"funky\")\n\nA minimal Go package providing a few functional utilities using Go [generics](https://go.dev/blog/intro-generics).\n\nNothin' too special; largely just for my own learning and casual use, but perhaps this useful to you too.\n\n## Test\n\n```\nmake\n```\n\n## API\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/mdb/funcy)](https://pkg.go.dev/github.com/mdb/funcy)\n\nSummary:\n\n```\npackage funcy // import \"github.com/mdb/funcy\"\n\nvar ErrNotFound = errors.New(\"not found\")\nfunc Any[E any](s []E, f evaluator[E]) bool\nfunc Contains[E comparable](s []E, v E) bool\nfunc Dedupe[E comparable](s []E) []E\nfunc Filter[E any](s []E, f retainer[E]) []E\nfunc Find[E any](s []E, f finder[E]) (E, error)\nfunc Map[E any](s []E, f mapper[E]) []E\nfunc Quicksort[E constraints.Ordered](arr []E) []E\nfunc Reduce[E any](s []E, init E, f reducer[E]) E\nfunc ReduceRight[E any](s []E, init E, f reducer[E]) E\nfunc Reverse[E any](s []E) []E\nfunc Sort[E constraints.Ordered](s []E) []E\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Ffuncy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdb%2Ffuncy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdb%2Ffuncy/lists"}