{"id":15495106,"url":"https://github.com/samchon/astl","last_synced_at":"2025-08-20T22:42:29.049Z","repository":{"id":57185318,"uuid":"302658752","full_name":"samchon/astl","owner":"samchon","description":"Standard Template Library for AssemblyScript","archived":false,"fork":false,"pushed_at":"2020-12-14T01:04:36.000Z","size":349,"stargazers_count":40,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-17T07:53:35.726Z","etag":null,"topics":[],"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/samchon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-09T14:04:42.000Z","updated_at":"2025-04-23T19:31:12.000Z","dependencies_parsed_at":"2022-09-14T10:02:47.140Z","dependency_job_id":null,"html_url":"https://github.com/samchon/astl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samchon/astl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samchon%2Fastl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samchon%2Fastl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samchon%2Fastl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samchon%2Fastl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samchon","download_url":"https://codeload.github.com/samchon/astl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samchon%2Fastl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271399282,"owners_count":24752808,"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-20T02:00:09.606Z","response_time":69,"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":[],"created_at":"2024-10-02T08:16:08.033Z","updated_at":"2025-08-20T22:42:29.021Z","avatar_url":"https://github.com/samchon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AssemblyScript Standard Template Library\n![logo](https://user-images.githubusercontent.com/13158709/98328610-7b5f4d00-2039-11eb-8135-6cf8100a12b3.png)\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samchon/astl/blob/master/LICENSE)\n[![npm version](https://badge.fury.io/js/astl.svg)](https://www.npmjs.com/package/astl)\n[![Downloads](https://img.shields.io/npm/dm/astl.svg)](https://www.npmjs.com/package/astl)\n[![Build Status](https://github.com/samchon/astl/workflows/build/badge.svg)](https://github.com/samchon/astl/actions?query=workflow%3Abuild)\n\nImplementation of STL (Standard Template Library) for the AssemblyScript.\n\n  - Containers\n  - Iterators\n  - Algorithms\n  - Functors\n\n**ASTL** is an open-source project providing features of the STL, migrated from the *C++* to the *AssemblyScript*. You can enjoy those STL's own specific *containers*, *algorithms* and *functors* in the AssemblyScript.\n\nBelow components are list of the provided objects in the **ASTL**.\n\n\n\n\n## Features\n### Containers\n  - **Linear Conatainers**\n    - `Vector`\n    - `Deque`\n    - `List`\n    - `ForwardList`\n    - `VectorBoolean`\n  - **Associative Containers**\n    - *Tree-structured ontainers*\n      - `TreeMap`\n      - `TreeMultiMap`\n      - `TreeMultiSet`\n      - `TreeSet`\n    - *Hash-buckets based containers*\n      - `HashMap`\n      - `HashMultiMap`\n      - `HashMultiSet`\n      - `HashSet`\n  - **Adaptor Containers**\n    - *Linear adaptors*\n      - `Stack`\n      - `Queue`\n      - `PriorityQueue`\n    - *Associative adaptors*\n      - `experimental.FlatMap`\n      - `experimental.FlatMultiMap`\n      - `experimental.FlatMultiSet`\n      - `experimental.FlatSet`\n      - `experimental.LightMap`\n      - `experimental.LightSet`\n\n### Algorithms\n  - `\u003calgorithm\u003e`\n    - *binary_search*\n    - *heap*\n    - *iterations*\n    - *mathematics*\n    - *merge*\n    - *modifiers*\n    - *partition*\n    - *sorting*\n    - *union_set*\n\n### Functors\n  - `\u003cexception\u003e`\n    - Exception\n      - LogicError\n      - RntimeError\n  - `\u003cfunctional\u003e`\n    - *comparators*\n    - *hash*\n  - `\u003cnumeric\u003e`\n    - *operators*\n    - *operations*\n    - *special_math*\n  - `\u003cutility\u003e`\n  \n\n\n\n## Installation\n### NPM Module\nInstalling the **ASTL** in the *NodeJS* environment is very easy. Just install with the `npm`.\n\n```bash\nnpm install --save astl\n```\n### Usage\n```typescript\nimport std from \"astl\";\n\nfunction main(): void\n{\n    const map: std.TreeMap\u003ci32, string\u003e = new std.TreeMap();\n\n    map.emplace(1, \"First\");\n    map.emplace(4, \"Fourth\");\n    map.emplace(5, \"Fifth\");\n    map.set(9, \"Nineth\");\n\n    for (let it = map.begin(); it != map.end(); it = it.next())\n        trace(it.first.toString() + \", \" + it.second);\n\n    const it: std.TreeMap.Iterator\u003ci32, string\u003e = map.lower_bound(3);\n    trace(\"lower_bound() of 3 is: \" + it.first.toString());\n}\nmain();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamchon%2Fastl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamchon%2Fastl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamchon%2Fastl/lists"}