Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Created March 6, 2017 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpodwysocki/ff68fb23d3d782b22607cb192a7b9997 to your computer and use it in GitHub Desktop.
Save mattpodwysocki/ff68fb23d3d782b22607cb192a7b9997 to your computer and use it in GitHub Desktop.
'use strict';
import { IIterable } from '../iterable.interfaces';
import { ConcatIterable } from './concat';
export function startWith<T>(
source: IIterable<T>,
...args: IIterable<T>[]) {
return new ConcatIterable(...args.concat(source));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment