{"id":21913621,"url":"https://github.com/vendethiel/autounderscore.rb","last_synced_at":"2025-07-01T05:04:56.271Z","repository":{"id":146848926,"uuid":"492813811","full_name":"vendethiel/autounderscore.rb","owner":"vendethiel","description":"Magical `it`, `_`, and `_N` lambda builders (where 0 \u003c= N \u003c= 9)","archived":false,"fork":false,"pushed_at":"2024-01-31T15:50:36.000Z","size":8,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T08:48:22.891Z","etag":null,"topics":["lambda","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vendethiel.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-16T11:53:58.000Z","updated_at":"2024-01-31T14:53:15.000Z","dependencies_parsed_at":"2024-01-31T17:14:03.577Z","dependency_job_id":"c102cf96-1b73-443f-8a94-e11b54a8a124","html_url":"https://github.com/vendethiel/autounderscore.rb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vendethiel/autounderscore.rb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendethiel%2Fautounderscore.rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendethiel%2Fautounderscore.rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendethiel%2Fautounderscore.rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendethiel%2Fautounderscore.rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vendethiel","download_url":"https://codeload.github.com/vendethiel/autounderscore.rb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vendethiel%2Fautounderscore.rb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262900155,"owners_count":23381660,"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","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":["lambda","ruby"],"created_at":"2024-11-28T18:18:03.653Z","updated_at":"2025-07-01T05:04:56.247Z","avatar_url":"https://github.com/vendethiel.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutoUnderscore\n\nAllows you to write succinct lambdas with `it` (groovy-style) or numbered `_` helpers (where `_` is the same as `it` and\nas `_0`).\nThe operator to call the final function is `[]` (like for closures).\n\nSome examples:\n\n```ruby\n# A simple identity example\nit[0]\n#=\u003e 0\nit.to_s[:foo]\n#=\u003e \"foo\"\n(_(0) + _(1))[1, 10]\n# =\u003e 11\n# A more convoluted example\n((_0.split(\" \") + _1.split(\" \")).join(_2))[\"a b\", \"c d\", \",\"]\n#=\u003e a,b,c,d\n# _ is the \"next argument\" placeholder\n(_ + _)[1, 2]\n#=\u003e 3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvendethiel%2Fautounderscore.rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvendethiel%2Fautounderscore.rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvendethiel%2Fautounderscore.rb/lists"}