first commit

This commit is contained in:
douboer
2026-09-30 15:05:17 +08:00
commit 34cf39dfe3
1288 changed files with 118174 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
###
### iterator-to-stream.pl
###
## Chapter 8 section 1.4
use Stream 'node';
sub iterator_to_stream {
my $it = shift;
my $v = $it->();
return unless defined $v;
node($v, sub { iterator_to_stream($it) });
}
1;