{"id":19558260,"url":"https://github.com/samirsilwal/structures","last_synced_at":"2025-08-01T21:03:06.980Z","repository":{"id":40764460,"uuid":"263250262","full_name":"samirsilwal/structures","owner":"samirsilwal","description":"A library of data structure with extended features for each structures. ","archived":false,"fork":false,"pushed_at":"2024-11-25T22:42:00.000Z","size":10660,"stargazers_count":4,"open_issues_count":12,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-04-20T13:39:50.953Z","etag":null,"topics":["functional-programming","linked-list","queue","stack","tail-recursion"],"latest_commit_sha":null,"homepage":"","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/samirsilwal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-05-12T06:17:04.000Z","updated_at":"2024-10-27T14:39:36.000Z","dependencies_parsed_at":"2023-02-05T18:16:00.361Z","dependency_job_id":null,"html_url":"https://github.com/samirsilwal/structures","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samirsilwal%2Fstructures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samirsilwal%2Fstructures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samirsilwal%2Fstructures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samirsilwal%2Fstructures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samirsilwal","download_url":"https://codeload.github.com/samirsilwal/structures/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251068039,"owners_count":21531475,"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":["functional-programming","linked-list","queue","stack","tail-recursion"],"created_at":"2024-11-11T04:46:38.776Z","updated_at":"2025-04-26T23:31:49.770Z","avatar_url":"https://github.com/samirsilwal.png","language":"TypeScript","readme":"# Structures\n\nStructure is yet another fun custom collection adding some interesting features to existing js arrays features. Consists bunch of other structures like Stack, Queue as well.\n\nCurrently available collection structures are :-\n  - LinkedList\n  - Stack\n  - Queue\n\n# New Features!\n1. LinkedList\n   \n  - **\\+ operator** : Add two collection together of same type\n  - **flatten** : flattens the 2D collection in single\n  - **flatmap** : A monadic feature of collection, analogous to map followed by flatten\n  - **lhead \u0026 ltail** : extract first element and rest list of items repectively. \n  - **ltop \u0026 lbottom** : extract n - 1 element from the list and get last element of list respectively.\n\n**NOTE** : These helpful methods conveniently help in implementing recursive logic in the collection.\n\n2. Stack\n  - pile and unpile: Append another stack on top of other or remove a pile of stack\n  \n\n### Todos\n\n - Write MORE Tests\n - Conitnue to add more interesting functions.\n\nLicense\n----\n\nMIT\n----","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamirsilwal%2Fstructures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamirsilwal%2Fstructures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamirsilwal%2Fstructures/lists"}