package

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

  1. Add the dependency to your shard.yml:

    dependencies:
      extlib:
        github: davidkellis/extlib
  2. Run shards install

Usage

require "extlib"

Contributing

  1. Fork it (https://github.com/davidkellis/extlib/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

API

  • Array(T)

    An Array is 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

    Random provides an interface for random values generation, using a pseudo random number generator (PRNG).

  • Slice(T)

    A Slice is a Pointer with an associated size.

  • String

    A String represents 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