summaryrefslogtreecommitdiff
path: root/u/fn/callable.ts
diff options
context:
space:
mode:
Diffstat (limited to 'u/fn/callable.ts')
-rw-r--r--u/fn/callable.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/u/fn/callable.ts b/u/fn/callable.ts
index a087928..fc6ea81 100644
--- a/u/fn/callable.ts
+++ b/u/fn/callable.ts
@@ -7,9 +7,6 @@ export interface Supplier<T> extends Callable<T, undefined> {
(): T;
}
-export interface SideEffect<T> extends Callable<void, T> {
-}
-
export interface Mapper<T, U> extends Callable<U, T> {
(t: T): U;
}
@@ -17,3 +14,9 @@ export interface Mapper<T, U> extends Callable<U, T> {
export interface BiMapper<T, U, R> extends Callable {
(t: T, u: U): R;
}
+
+export interface SideEffect<T> extends Mapper<T, void> {
+}
+
+export interface BiSideEffect<T, U> extends BiMapper<T, U, void> {
+}