{"id":18047165,"url":"https://github.com/jw3126/single.jl","last_synced_at":"2025-08-12T17:42:58.552Z","repository":{"id":81964842,"uuid":"136518077","full_name":"jw3126/Single.jl","owner":"jw3126","description":"Contains single function","archived":false,"fork":false,"pushed_at":"2018-06-07T18:57:59.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T04:26:57.244Z","etag":null,"topics":["julia"],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jw3126.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-07T18:47:22.000Z","updated_at":"2018-06-07T18:51:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f2818ca-cf04-4f25-b93c-8bfe405cd732","html_url":"https://github.com/jw3126/Single.jl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jw3126/Single.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw3126%2FSingle.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw3126%2FSingle.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw3126%2FSingle.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw3126%2FSingle.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jw3126","download_url":"https://codeload.github.com/jw3126/Single.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw3126%2FSingle.jl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270108557,"owners_count":24528763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"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":["julia"],"created_at":"2024-10-30T19:10:31.770Z","updated_at":"2025-08-12T17:42:58.471Z","avatar_url":"https://github.com/jw3126.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Single\n![](https://travis-ci.org/jw3126/Single.jl.svg?branch=master)\n\nReturn the single element of a container. Stolen from [here](https://github.com/JuliaLang/julia/pull/25078).\n\n```julia\njulia\u003e using Single\n\njulia\u003e single([])\nERROR: ArgumentError: Collection is empty, must contain exactly one element\n\njulia\u003e single([\"TheHighlander\"])\n\"TheHighlander\"\n\njulia\u003e single([1,2])\nERROR: ArgumentError: Collection has multiple elements, must contain exactly one element\n\njulia\u003e single([], \"default\")\n\"default\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjw3126%2Fsingle.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjw3126%2Fsingle.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjw3126%2Fsingle.jl/lists"}