MCPcopy Create free account
hub / github.com/WinterTC55/iter-streams / lines

Function lines

samples/01-basic-creation.ts:80–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 // Synchronous generator as source
79 {
80 function* lines() {
81 yield 'line 1\n';
82 yield 'line 2\n';
83 yield 'line 3\n';
84 }
85 const text = await Stream.text(Stream.pull(lines()));
86 console.log('Sync generator output:', text.trim());
87 }

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected