MCPcopy Create free account
hub / github.com/Effect-TS/effect / flip

Function flip

packages/effect/src/Reducer.ts:169–171  ·  view source on GitHub ↗
(reducer: Reducer<A>)

Source from the content-addressed store, hash-verified

167 * @since 4.0.0
168 */
169export function flip<A>(reducer: Reducer<A>): Reducer<A> {
170 return make((self, that) => reducer.combine(that, self), reducer.initialValue)
171}

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
combineMethod · 0.65

Tested by

no test coverage detected