{"version":3,"file":"index.cjs","sources":["../src/_chain.js","../src/chain.js"],"sourcesContent":["/**\n * Chains input iterables one after the other. Returns an iterable iterator\n * that yields all values of the first input iterable, then all values of the\n * second, etc.\n *\n * @example\n * // returns [ 0 , 1 , 0 , 1 , 2 ]\n * list( _chain( [ range( 2 ) , range( 3 ) ] ) ) ;\n *\n * @param {Iterable[]} iterables - The input iterables to chain.\n * @returns {IterableIterator}\n */\nexport default function* _chain(iterables) {\n\tfor (const iterable of iterables) {\n\t\tyield* iterable;\n\t}\n}\n","import _chain from './_chain.js';\n\n/**\n * Chains input iterables one after the other. Returns an iterable iterator\n * that yields all values of the first input iterable, then all values of the\n * second, etc.\n *\n * @example\n * // returns [ 0 , 1 , 0 , 1 , 2 ]\n * list( chain( range( 2 ) , range( 3 ) ) ) ;\n *\n * @param {...Iterable} iterables - The input iterables to chain.\n * @returns {IterableIterator}\n *\n */\nconst chain = (...iterables) => _chain(iterables);\nexport default chain;\n"],"names":["_chain","iterables"],"mappings":"o1BAYyBA,YAAAA,EAAOC,8FACRA,0CACtB,uCAFa,2FCGD,kBAAkBD"}