Current section
Files
Jump to
Current section
Files
pooka_stdlib
README.md
README.md
<p align="center">
<img src="assets/noxy.png" alt="Pooka mascot" width="280" />
</p>
# Pooka Standard Library
[](https://hex.pm/packages/pooka_stdlib)
[](https://pooka-stdlib.hexdocs.pm/)
[](https://github.com/pooka-lang/pooka_stdlib/actions/workflows/test.yml)
The standard library for [Pooka](https://github.com/pooka-lang/pooka), for use with Pooka 0.1.0 and Erlang/OTP 29.
See the [documentation](https://pooka-stdlib.hexdocs.pm/) for the API and examples. Compiler installation and language information are in the [Pooka repository](https://github.com/pooka-lang/pooka).
## Usage
Add the library to your Pooka project:
```sh
pooka add pooka_stdlib
```
Or declare it in `pooka.toml`:
```toml
[dependencies]
pooka_stdlib = ">= 0.1.0 and <= 1.0.0"
```
> Standard Library comes as a dependency in all new Pooka projects.
```pooka
module main
import pooka/list
main() {
assert list.map([1, 2, 3], fn(n) { n * 2 }) == [2, 4, 6]
}
```
## Licence
Licensed under the [Apache License, Version 2.0](LICENSE).