Skip to content

Commit

Permalink
Removed commented-out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboikliev committed Jan 10, 2021
1 parent 4145fa3 commit 058ae03
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/linq/linqable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,7 @@ export class Linqable<TSource> implements Iterable<TSource>, ElementsWrapper<TSo
accumulated = accumulator(accumulated, result.value, index++) as TResult
result = iterator.next()
}
return accumulated

// let accumulated = seed
// let index = 0

// for (const element of this) {
// accumulated = accumulator(accumulated, element, index++)
// }

// return accumulated
return accumulated
}

scan<TResult = TSource>(accumulator: (accumulated: TResult, element: TSource, index: number) => TResult, seed?: TResult): Linqable<TResult> {
Expand Down

0 comments on commit 058ae03

Please sign in to comment.