{"id":15557667,"url":"https://github.com/icholy/higher","last_synced_at":"2026-03-15T08:43:12.586Z","repository":{"id":13094198,"uuid":"15775528","full_name":"icholy/higher","owner":"icholy","description":"Higher order functions for Go","archived":false,"fork":false,"pushed_at":"2015-06-12T20:58:47.000Z","size":234,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T17:57:41.997Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"atifkhangit/drs-toolkit-wp-plugin","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icholy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-09T18:34:53.000Z","updated_at":"2021-01-02T16:23:23.000Z","dependencies_parsed_at":"2022-08-30T07:30:47.655Z","dependency_job_id":null,"html_url":"https://github.com/icholy/higher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icholy/higher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Fhigher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Fhigher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Fhigher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Fhigher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icholy","download_url":"https://codeload.github.com/icholy/higher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icholy%2Fhigher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30539323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T07:17:37.589Z","status":"ssl_error","status_checked_at":"2026-03-15T07:17:31.738Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-02T15:20:14.203Z","updated_at":"2026-03-15T08:43:12.564Z","avatar_url":"https://github.com/icholy.png","language":"Go","readme":"# Higher [![Build Status](https://travis-ci.org/icholy/higher.png?branch=master)](https://travis-ci.org/icholy/higher)\n\n\u003e Higher order functions in Go (really unsafe).\n\u003e You probably shouldn't use this.\n\n[godoc](http://godoc.org/github.com/icholy/higher)\n\n![](higher.jpeg)\n\n### Examples\n\n``` go\ns1 := []int{1, 2, 3, 4, 5}\ns2 := higher.Filter(s1, func(x int) bool { return x \u003e 2 })\ns3 := higher.Map(s, strconv.Itoa).([]string)\n```\n\n### You can chain them too.\n\n``` go\ns := higher.Wrap([]int{1, 2, 3, 4, 5}).\n        Filter(func(x int) bool { return x \u003e 2 }).\n        PMap(strconv.Itoa).\n        Tap(fmt.Println).\n        Val().([]string)\n```\n\n### Available functions:\n\n* `Map`\n* `PMap`\n* `Filter`\n* `PFilter`\n* `Reduce` reduce can't be parallel\n* `ForEach`\n* `PForEach`\n* `Tap`\n* `PTap`\n* `Any`\n* `PAny`\n* `Every`\n* `PEvery`\n* `Contains`\n* `PContains`\n* `Find`\n* `PFind`\n\n### Chaining \n\n* `Wrap`\n* `Val`\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficholy%2Fhigher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficholy%2Fhigher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficholy%2Fhigher/lists"}