Fix example in readme
Some checks are pending
test / test (push) Waiting to run

This commit is contained in:
Lily Rose 2025-08-09 18:44:25 +10:00
parent 52df93ed93
commit 683b75f65a

View file

@ -12,7 +12,7 @@ gleam add infiniyield@1
import infiniyield import infiniyield
pub fn main() { pub fn main() {
infiniyield.unfold(2, fn(acc) { yielder.Next(acc, acc * 2) }) infiniyield.unfold(2, fn(acc) { infiniyield.Next(acc, acc * 2) })
|> infiniyield.take(5) |> infiniyield.take(5)
// -> [2, 4, 8, 16, 32] // -> [2, 4, 8, 16, 32]
} }