2 Fix typo and markdown
source | link

LINQ

Instead of using:

Enumerable.Range(0,y).Select(i=>f(i))

to get an Enumerable with the result of function ff for every intint in [0,y[[0,y] you can use

new int[y].Select((_,i)=>f(i))

if you need stringsstring or anything that implements EnumerableEnumerable in your program you can use them too

var s="I need this anyway";
s.Select((_,i)=>f(i))

LINQ

Instead of using:

Enumerable.Range(0,y).Select(i=>f(i))

to get an Enumerable with the result of function f for every int in [0,y[ you can use

new int[y].Select((_,i)=>f(i))

if you need strings or anything that implements Enumerable in your program you can use them too

var s="I need this anyway";
s.Select((_,i)=>f(i))

LINQ

Instead of using:

Enumerable.Range(0,y).Select(i=>f(i))

to get an Enumerable with the result of function f for every int in [0,y] you can use

new int[y].Select((_,i)=>f(i))

if you need string or anything that implements Enumerable in your program you can use them too

var s="I need this anyway";
s.Select((_,i)=>f(i))
1
source | link

LINQ

Instead of using:

Enumerable.Range(0,y).Select(i=>f(i))

to get an Enumerable with the result of function f for every int in [0,y[ you can use

new int[y].Select((_,i)=>f(i))

if you need strings or anything that implements Enumerable in your program you can use them too

var s="I need this anyway";
s.Select((_,i)=>f(i))