{"id":28411469,"url":"https://github.com/patricknevindwyer/chunky","last_synced_at":"2025-06-23T23:31:31.082Z","repository":{"id":57482884,"uuid":"226701232","full_name":"patricknevindwyer/chunky","owner":"patricknevindwyer","description":"Extended chunking and enumeration manipulation for Elixir.","archived":false,"fork":false,"pushed_at":"2020-02-08T14:32:27.000Z","size":1998,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T03:57:25.033Z","etag":null,"topics":["elixir","elixir-library","fractions","hex-package","math","oeis"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patricknevindwyer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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":"2019-12-08T16:59:41.000Z","updated_at":"2024-06-16T04:09:27.000Z","dependencies_parsed_at":"2022-09-26T17:50:36.760Z","dependency_job_id":null,"html_url":"https://github.com/patricknevindwyer/chunky","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/patricknevindwyer/chunky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknevindwyer%2Fchunky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknevindwyer%2Fchunky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknevindwyer%2Fchunky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknevindwyer%2Fchunky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patricknevindwyer","download_url":"https://codeload.github.com/patricknevindwyer/chunky/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patricknevindwyer%2Fchunky/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261575589,"owners_count":23179548,"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":["elixir","elixir-library","fractions","hex-package","math","oeis"],"created_at":"2025-06-02T16:17:45.433Z","updated_at":"2025-06-23T23:31:31.076Z","avatar_url":"https://github.com/patricknevindwyer.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Hex version badge](https://img.shields.io/hexpm/v/chunky.svg)](https://hex.pm/packages/chunky)\n[![License badge](https://img.shields.io/hexpm/l/chunky.svg)](https://github.com/patricknevindwyer/chunky/blob/master/LICENSE)\n\n# Chunky\n\nFractions, extended Maths, Sequences, 2D Grids, Geometry, and Enumeration manipulations in Elixir.\n\n```elixir\niex\u003e Chunky.permutations(\"😀🤷🏽‍♀️⭐️\")\n[\n  \"😀🤷🏽‍♀️⭐️\", \n  \"😀⭐️🤷🏽‍♀️\", \n  \"🤷🏽‍♀️😀⭐️\", \n  \"🤷🏽‍♀️⭐️😀\", \n  \"⭐️😀🤷🏽‍♀️\", \n  \"⭐️🤷🏽‍♀️😀\"\n]\n\niex\u003e Chunky.Math.is_prime?(30762542250301270692051460539586166927291732754961)\ntrue\n\niex\u003e Chunky.combinations(1..4, 3)\n[[1, 2, 3], [1, 2, 4], [1, 3, 4], [2, 3, 4]]\n\niex\u003e Chunky.Sequence.create(Chunky.Sequence.OEIS, :a000045) |\u003e Chunky.Sequence.take!(10)\n[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n\niex\u003e Chunky.Fraction.power(Chunky.Fraction.new(7, 32), Chunky.Fraction.new(30, 5))\n%Chunky.Fraction{num: 117649, den: 1073741824}\n\niex\u003e Chunky.Fraction.power(Chunky.Fraction.new(7, 32), Chunky.Fraction.new(30, 5)) |\u003e IO.puts()\n117649/1073741824\n\niex\u003e Chunky.Math.prime_factors(3217644767340672907899084554130)\n[1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79]\n\niex\u003e Chunky.Math.binomial(20, 5)\n15504\n```\n\n## Installation\n\nInstall by adding `chunky` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:chunky, \"~\u003e 0.13.0\"}\n  ]\nend\n```\n\nChunky documentation can be found on Hexdocs at [https://hexdocs.pm/chunky](https://hexdocs.pm/chunky).\n\n\n## Documentation\n\n - [Fractions](https://hexdocs.pm/chunky/Chunky.Fraction.html#content)\n - [Math](https://hexdocs.pm/chunky/Chunky.Math.html#content)\n - [Sequences](https://hexdocs.pm/chunky/Chunky.Sequences.html#content)\n - [Combinitorics](https://hexdocs.pm/chunky/Chunky.html#content)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricknevindwyer%2Fchunky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatricknevindwyer%2Fchunky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatricknevindwyer%2Fchunky/lists"}