summaryrefslogtreecommitdiff
path: root/u/fn
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2025-05-18 12:24:09 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2025-05-18 12:24:09 -0700
commit9cf3fc0259730b7dcf47b3ab4a04369e39fb4614 (patch)
treea96d39b4f28d38e327376cbef7ba60dbaa95e111 /u/fn
parentef51b25e4388cbdf3a27e23d9f1fa381ae20a5ad (diff)
downloadci-9cf3fc0259730b7dcf47b3ab4a04369e39fb4614.tar.gz
ci-9cf3fc0259730b7dcf47b3ab4a04369e39fb4614.zip
finish up pengueno
Diffstat (limited to 'u/fn')
-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> {
+}