Skip to content

csense-oss/csense-kotlin-datastructures-algorithms

Repository files navigation

Csense kotlin - Datastructures and algorithms

This library contains various datastructures and algorithms that are not "common" enough to be in the csense-kotlin library.

Showcases

Running Average

SetOnceBool

A very normal pattern is to set a value once, especially booleans

Before

var x = false
fun doSomething() {
    if (x) {
        return
    }
    x = true
    //more code here
}

After

val x = SetOnceBool(false)
fun doSomething() = x.lockWithAction {

}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages