{"id":18304772,"url":"https://github.com/zenoamaro/disarray","last_synced_at":"2025-04-09T10:39:17.307Z","repository":{"id":66209923,"uuid":"145906821","full_name":"zenoamaro/disarray","owner":"zenoamaro","description":"Arrays as the only data type","archived":false,"fork":false,"pushed_at":"2018-08-23T21:04:25.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T04:43:14.285Z","etag":null,"topics":["array","esolang","esoteric"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/zenoamaro.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-08-23T21:01:33.000Z","updated_at":"2018-08-23T21:04:27.000Z","dependencies_parsed_at":"2023-02-23T23:15:17.148Z","dependency_job_id":null,"html_url":"https://github.com/zenoamaro/disarray","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenoamaro%2Fdisarray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenoamaro%2Fdisarray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenoamaro%2Fdisarray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zenoamaro%2Fdisarray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zenoamaro","download_url":"https://codeload.github.com/zenoamaro/disarray/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248021799,"owners_count":21034743,"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":["array","esolang","esoteric"],"created_at":"2024-11-05T15:30:30.396Z","updated_at":"2025-04-09T10:39:17.225Z","avatar_url":"https://github.com/zenoamaro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Disarray\n\nDisarray is an esoteric language with only one data type: arrays.\n\n~~~\n[] → 0\n[[]] → [0] → 1\n[[] [[]]] → [0 [0]] → [0 1] → 2\n[[] [[]] [[[], []]]] → [0 [0] [[0 0]]] → [0 1 [2]] → [0 1 1] → 3\n~~~\n\n\n## API\n\n#### type Blob → number | Blob[]\n\nA Blob is either a number, or an array of Blobs. A number has a depth of zero; an array of numbers has depth 1, and so on.\n\n#### type Disarray → [] | Disarray[]\n\nA Blob is either an empty array, or an array of Disarrays. An empty array has a depth of one; an array of empty arrays has a depth of two, and so on.\n\n#### hydrate(blob: Blob) → Disarray\n\nConverts a Blob into a Disarray. It is always hydrated to its maximum depth.\n\n#### dehydrate(dis: Disarray, depth: number = 0) → Blob\n\nConverts a Disarray into a Blob at a certain depth. A depth of zero produces a single number; a depth of one produces an array of numbers, and so on. The number will be the length of that Disarray.\n\n#### depth(dis: Disarray) → number\n\nReturns the maximum depth of a Disarray. An empty array has depth one.\n\n#### valid(dis: Disarray) → boolean\n\nReturns true if the value is a valid Disarray.\n\n\n## License\n\nLicensed under the MIT license. See [LICENSE.md](LICENSE.md).\n\nCopyright (c) 2018, zenoamaro (\u003czenoamaro@gmail.com\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenoamaro%2Fdisarray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzenoamaro%2Fdisarray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzenoamaro%2Fdisarray/lists"}