Effect CommunityEC
Effect Community2y ago
23 replies
Jérôme MARTIN

Request for a Function to Inverse a Schema for Easier Composition

I was wondering: is there something like const inverse: <R,I,A>(s:Schema<R,I,A>)=>Schema<R,A,I>. I am trying to compose two schemas but one is going the wrong way. I can of course rewrite it. But as Schemas are usually both ways, it would be easier to just inverse it
Was this page helpful?