An open API service indexing awesome lists of open source software.

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.

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.