https://github.com/erhant/type-stacks
Type-level stack operations.
https://github.com/erhant/type-stacks
stack stack-based type-level-programming typescript
Last synced: about 2 months ago
JSON representation
Type-level stack operations.
- Host: GitHub
- URL: https://github.com/erhant/type-stacks
- Owner: erhant
- Created: 2023-10-22T11:29:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-22T11:47:29.000Z (over 1 year ago)
- Last Synced: 2025-01-13T06:43:20.848Z (3 months ago)
- Topics: stack, stack-based, type-level-programming, typescript
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Type Stacks
> Stack-based operations that live in the type-world.
## Installation
Install the NPM package:
```sh
npm i type-stacks
```## Usage
We support the following operations:
- `Pop`, `Push`, `Dup`, `Swap`
- `Add`, `Sub`, `Mul`, `Div`, `Mod`
- `Eq`, `NotEq`, `Gt`, `GtOrEq`, `Lt`, `LtOrEq`We use the awesome [ts-arithmetic](https://github.com/arielhs/ts-arithmetic) package for arithmetic operations.