@grain/stdlib v0.7.0
@grain/stdlib
The standard library for the Grain language.
Why
This package provides a distributable copy of the Grain standard library. Currently, it is available through npm.
Installation
Usually, you won't need to install this package. However, if you need it, install it with npm:
npm install @grain/stdlibUsage
Grain programs will search for an imported module in the stdlib if not available in your other search paths.
For example, you can import the number stdlib:
module Main
from "number" include Number
assert Number.abs(-1) == 1API
This package includes generated markdown documentation, but we recommend using our API docs on grain-lang.org.
License
MIT
Contributing
If you want to contribute to the stdlib, please consider the guidelines here, if you want something to work on you can find open issues here.
To regenerate the `stdlib documentation you can run:
npm run stdlib docTo format the stdlib you can run:
npm run stdlib formatTo run the stdlib tests you can run:
npm run compiler test -- --filter stdlib8 months ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago