(evaluate: () => A)
| 768 | |
| 769 | /** @internal */ |
| 770 | export const sync = <A>(evaluate: () => A): STM.STM<A> => { |
| 771 | const stm = new STMPrimitive(OpCodes.OP_SYNC) |
| 772 | stm.effect_instruction_i1 = evaluate |
| 773 | return stm as any |
| 774 | } |
| 775 | |
| 776 | /** @internal */ |
| 777 | export const zip = dual< |