Using Effects Directly as Functions
my effect masters is there way to not use function insted directly use Effect as funtion ?
like this some how
like this some how
export const increment = (x: number) => {
return Effect.sync(() => {
return x + 1;
});
};
export const increment = Effect.gen(function* (x: number) {
return x + 1
})