All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mperry.fg.StreamStaticExtension2.groovy Maven / Gradle / Ivy

There is a newer version: 0.8
Show newest version
package com.github.mperry.fg

import fj.F
import fj.P2
import fj.data.Option
import fj.data.Stream
import groovy.transform.TypeChecked
import groovy.transform.TypeCheckingMode

/**
 * Created by MarkPerry on 20/01/14.
 */
@TypeChecked
class StreamStaticExtension2 {

    @TypeChecked(TypeCheckingMode.SKIP)
    static  Stream unfold(Stream s, B b, F>> f) {
        Stream.unfold(f, b)
    }

    @TypeChecked(TypeCheckingMode.SKIP)
    static  Stream unfold(Stream s, B b, Closure>> f) {
        unfold(s, b, f as F)
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy