mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-15 23:45:17 +08:00
try using pipe
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { pipe } from "../../Function"
|
||||
import type { IdentityBoth } from "../Combined"
|
||||
import type { Covariant, CovariantComposition } from "../Covariant"
|
||||
import { getCovariantComposition } from "../Covariant"
|
||||
@@ -172,7 +173,7 @@ export function getTraversableComposition(
|
||||
foreachF: (H) => {
|
||||
const foreachF = F.foreachF(H)
|
||||
const foreachG = G.foreachF(H)
|
||||
return (f) => foreachF(foreachG(f))
|
||||
return (f) => pipe(f, foreachG, foreachF)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user