Using Effects Directly as Functions

my effect masters is there way to not use function insted directly use Effect as funtion ?

export const increment = (x: number) => {
  return Effect.sync(() => {
    return x + 1;
  });
};

export const increment = Effect.gen(function* (x: number)  {
 return x + 1
})

like this some how
Was this page helpful?