test.nim: Cleaner example of usage

This commit is contained in:
buckwheat
2025-12-26 14:30:13 -08:00
parent fdba0b01d4
commit f3bdece63b
2 changed files with 6 additions and 5 deletions

View File

@ -2,8 +2,9 @@ import std/sugar
# Declarations
type FileDesc* = enum STDIN, STDOUT, STDERR
type IO*[T] = proc(): T
type
FileDesc* = enum STDIN, STDOUT, STDERR
IO*[T] = proc(): T
func flatmap*[T, U](io: IO[T], fn: T -> IO[U]): IO[U]
func lift*(fn: proc(): void): IO[void]