com.github.mperry.fg.StreamStaticExtension2.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of functionalgroovy-main Show documentation
Show all versions of functionalgroovy-main Show documentation
FunctionalGroovy enhances FunctionalJava for Groovy
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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy