Skip to content

Instantly share code, notes, and snippets.

@lshifr
lshifr / LazyTuples.m
Last active November 3, 2017 13:06
Implementation of lazy tuple list, for Streaming framework
BeginPackage["LazyTuples`"]
LazyTuples::usage = "LazyTuples[lists, opts] create a LazyList of the specified chunk size (\"ChunkSize\" option), containing tuples of the original lists";
Begin["`Private`"]
Needs["Streaming`"];
ClearAll[next];
next[{left_, _}, dim_] :=