package

github.com/metacortex/saccharin

0.5.0 / published Jun 13, 2017 / repository

crystal sugar

Build Status

saccharin

sugar

Useful utilities and core extensions for crystal-lang

Installation

Add this to your application's shard.yml:

dependencies:
  saccharin:
    github: metacortex/saccharin

Contributors

  • @metacortex - creator, maintainer

API

  • Bool

    Bool has only two possible values: true and false.

  • Enumerable(T)

    The Enumerable mixin provides collection classes with several traversal, searching, filtering and querying methods.

  • Float

    Float is the base type of all floating point numbers.

  • Int

    Int is the base type of all integer types.

  • NamedTuple(**T)

    A named tuple is a fixed-size, immutable, stack-allocated mapping of a fixed set of keys to values.

  • Nil

    The Nil type has only one possible value: nil.

  • Saccharin

    == Core extensions

  • String

    A String represents an immutable sequence of UTF-8 characters.

  • Time

    Time represents a date-time instant in incremental time observed in a specific time zone.