pocket-lisp-stdlib

Standard lib for Pocket Lisp

Usage no npm install needed!

<script type="module">
  import pocketLispStdlib from 'https://cdn.skypack.dev/pocket-lisp-stdlib';
</script>

README

Pocket lisp Standard Library

Standard library for Pocket lisp.

License: MIT code style: prettier Travis Build Status Codecov Code Coverage

Stdlib

Types based on Fantasy land

Basic data types

  • Bool
  • Number
  • Fraction number
  • String
  • Vector
  • HashMap

Math functions and constants

  • E
  • LN2
  • LN10
  • LOG2E
  • LOG10E
  • PI
  • SQRT1_2
  • SQRT2
  • abs
  • sign
  • min
  • max
  • floor
  • round
  • ceil
  • trunc
  • cbrt
  • sqrt
  • exp
  • pow
  • log
  • log2
  • log10

Other functions

  • random
  • random-int
  • shuffle

https://maxinteger.github.io/pocket-lisp/

For contributors

You can build packages locally with

npm build

or do continuous build with

npm watch

Also you can run test by

npm test