diff src/main/java/fj/data/IO.java @ 0:fe80c1edf1be

add getLoop
author tatsuki
date Fri, 20 Mar 2015 21:04:03 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/java/fj/data/IO.java	Fri Mar 20 21:04:03 2015 +0900
@@ -0,0 +1,20 @@
+package fj.data;
+
+/**
+ * Created by MarkPerry on 19/06/2014.
+ */
+
+import java.io.IOException;
+
+/**
+ * IO monad for processing files
+ *
+ * @author Martin Grotzke
+ *
+ * @param <A> the type of the result produced by the IO
+ */
+public interface IO<A> {
+
+	public A run() throws IOException;
+
+}