github.com/davidkellis/extlib
master / published Jun 21, 2023 / repository
Extended standard library for Crystal
extlib
extlib is a collection of extentions to the Crystal standard library that I find myself using frequently.
Installation
-
Add the dependency to your
shard.yml:dependencies: extlib: github: davidkellis/extlib -
Run
shards install
Usage
require "extlib"
Contributing
- Fork it (https://github.com/davidkellis/extlib/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- David Ellis - creator and maintainer
API
- Array(T)
An
Arrayis an ordered, integer-indexed collection of objects of type T. - BigInt
monkey patch BigInt to introduce a new class method onto BigInt
- Extlib
- Period
- Random
Randomprovides an interface for random values generation, using a pseudo random number generator (PRNG). - Slice(T)
A
Sliceis aPointerwith an associated size. - String
A
Stringrepresents an immutable sequence of UTF-8 characters. - UInt128
monkey patch UInt128 to introduce a new class method onto UInt128
- UInt64
monkey patch UInt64 to introduce a new class method onto UInt128
- UUID
monkey patch UUID to introduce a new class method onto UUID