Commits

Sergei Vavinov  committed 9fed053

constF

  • Participants
  • Parent commits c48644d

Comments (0)

Files changed (1)

File 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();
+    }
+
 } //~