Skip to content
General-purpose collection of OOP primitives for Kotlin
Branch: master
Clone or download
Latest commit ce10c0b Oct 22, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
buildSrc
cactoos @ 1dfd076 Sync with upstream Oct 22, 2018
compatibility-tests
docs Remove generated docs from source Jul 5, 2018
gradle/wrapper
kactoos-common Update kotlin native Oct 22, 2018
kactoos-js
kactoos-jvm
kactoos-native Update kotlin native Oct 22, 2018
.editorconfig port ScalarWithFallback May 25, 2018
.gitattributes
.gitignore
.gitmodules Moules problem Mar 30, 2018
.rultor.yml
.travis.yml initital commit Jan 21, 2018
Gemfile Bad gemfile Feb 19, 2018
LICENSE initital commit Jan 21, 2018
README.md Changes to java interop are not important anymore Aug 10, 2018
appveyor.yml Prepare for release 0.2 Jan 21, 2018
build.cactoos.gradle.kts Update deps Sep 21, 2018
build.gradle.kts Update kotlin Oct 22, 2018
gradle.properties
gradlew
gradlew.bat initital commit Jan 21, 2018
settings.gradle.kts Working on simplifing tests code for iterators Jun 14, 2018

README.md

Kactoos.

Build Status Build status Jitpack Active Contributors Code Volume Coding Hours Efficiency Utilization

Reworked to Kotlin version of Cactoos

Usage

Kactoos intended to be used as drop-in replacement for Cactoos, this statement backed by compatibility tests

Examples

Write to file, read it contents, and compare it with original

val temp = Files.createTempFile("kactoos-1", "txt-1")
val identical = Equals(
    {
        TextOf(
            TeeInput(
                InputOf(
                    BytesOf(
                        TextOf("Hello, world!")
                    )
                ),
                WriterAsOutput(
                    WriterTo(temp)
                )
            )
        ).asString()
    },
    { "Hello, world!" }
).invoke()

Purpose

Target platforms other than jvm, specifically kotlin-js and kotlin-native

Some implementation notes

  • Do no use @JvmOverloads and default arguments in functions and constructors as it's not portable
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.