code h
u
bsch
tweet-ready code images
More from Betalyra
Labs
Settings
Editor
TypeScript
1
2
3
4
5
6
7
8
9
10
11
12
import { Effect, pipe } from "effect" const greet = (name: string) => name.length >= 1 ? Effect.succeed(`Hello, ${name}!`) : Effect.fail("empty" as const) const program = pipe( greet("world"), Effect.tap((msg) => Effect.log(msg)), )
Preview
1200×675
Fit
1:1
rendering…