Created
March 6, 2017 12:16
-
-
Save mattpodwysocki/ff68fb23d3d782b22607cb192a7b9997 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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