Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the C# equivalent of map function in Haskell

Tags:

c#

map function in Haskell has two input parameters. The first parameter is a function and second parameter is a list. The map function applies the function passed as input parameter to all the elements in the list and returns a new list.

Is there a C# equivalent to this functionality?

like image 846
BM. Avatar asked Jan 26 '10 21:01

BM.


People also ask

What is C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is C language in simple words?

What Does C Programming Language (C) Mean? C is a high-level and general-purpose programming language that is ideal for developing firmware or portable applications. Originally intended for writing system software, C was developed at Bell Labs by Dennis Ritchie for the Unix Operating System in the early 1970s.

What is C for computer?

C is a structured, procedural programming language that has been widely used both for operating systems and applications and that has had a wide following in the academic community. Many versions of UNIX-based operating systems are written in C.


1 Answers

Select

MSDN Reference

See my question Why is the LINQ "apply-to-all" method named Select? (Only if you are curious as it is not directly related).

like image 75
ChaosPandion Avatar answered Oct 05 '22 17:10

ChaosPandion