Released Version 3.14
Made the following enhancements to improve R7RS support:
- Updated the parser for strings, symbols, and character literals. The reader now understands Unicode hex values, strings and symbols now allow mnemonic and numeric escape sequences, and the list of named characters has been extended.
- Added support for the
=>syntax to the
cond-expandsyntax to statically expand different expressions depending upon whether features are present in the Scheme implementation. This could help allow the same code to work in husk as well as other R7RS implementations.
- Added an optional second argument to
logto allow specifying the base.
- Added the following functions:
- Added support for
Added a library to compute simple random numbers, based on this Stack Overflow answer:
(import (husk random)) (random num) ; Seed the RNG (random) ; Random number from 0 to 1 (randint lo hi) ; Generate random integer between lo (optional) and hi