Commits

Sergei Vavinov committed 9fed053

constF

Comments (0)

Files changed (1)

src/main/java/ru/yandex/bolts/function/Function1B.java

         return asFunction1B(asFunction().memoize());
     }
 
+    public static <B> Function1B<B> constF(boolean value) {
+        return value ? Function1B.<B>trueF() : Function1B.<B>falseF();
+    }
+
 } //~