Giter Site home page Giter Site logo

kollection's Introduction

kollection

Yet Another Kotlin Collection Library and Additional Utility

Build Status Maven Central Dokka Reference Status

Usage

For gradle user

Add the following line to build.gradle:

dependencies {
  compile "com.github.kmizu:kollection:0.4"
}

Examples

Collections

KList

KList is a cons-based List. It provides access to head by hd and access to tail by hd. It takes only constant time to insert a new element to front of the KList. Note that it takes linear time to append a new element to last of the KList

KStream

KStream is like a KList seemingly. But it differs from KList in that KStream's tail is lazily evaluated. Therefore, KStream can represent an infinite stream. For example, ones is an infinite stream that consists of only 1 such as the following:

val ones: KStream<Int> = 1 cons { ones }

KOption

KOption is a container which has only one value(Some) or no value(None).

KStack

KStack is cons-based immutable stack implementation.

KListMap

KListMap is KList-based immutable Map.

KListSet

KListMap is KList-based immutable Set.

KTreeSet

KTreeSet is RedBlackTree-based immutable Set.

KTreeMap

KTreeMap is RedBlackTree-based immutable Map.

kollection's People

Stargazers

ab25cq avatar Dario Elyasy avatar SUZUKI Sosuke avatar aiya000 avatar Takumi Kadowaki avatar Michal Skrabacz avatar Deny Prasetyo avatar  avatar RyotaMurohoshi avatar hichon avatar epy0n0ff avatar yy_yank avatar  avatar Keigo Ebihara avatar mitsuse avatar Masashi Fujita avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.