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

com.aol.cyclops.guava.FromFunctionalJava Maven / Gradle / Ivy

There is a newer version: 9.0.0-MI7
Show newest version
package com.aol.cyclops.guava;

import com.google.common.base.Function;
import com.google.common.base.Optional;

import fj.F;


public class FromFunctionalJava {
	public static   Function f1(F fn){
		return (t) -> fn.f(t);
	}
	
	public static Optional option(fj.data.Option o){
		if(o.isNone())
			return Optional.absent();
		return Optional.of(o.some());
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy