cyclops.monads.VavrWitness Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cyclops-vavr Show documentation
Show all versions of cyclops-vavr Show documentation
Converters and Comprehenders for Javaslang
The newest version!
package cyclops.monads;
import com.aol.cyclops.vavr.adapter.*;
import com.aol.cyclops2.types.extensability.FunctionalAdapter;
import io.vavr.collection.*;
import io.vavr.concurrent.Future;
import io.vavr.control.Either;
import io.vavr.control.Option;
import io.vavr.control.Try;
public interface VavrWitness {
public static List list(AnyM anyM){
return anyM.unwrap();
}
public static Vector vector(AnyM anyM){
return anyM.unwrap();
}
public static Queue queue(AnyM anyM){
return anyM.unwrap();
}
public static Option option(AnyM