Skip to content

Are there any differences between Select and Map? if not why include Map in this library #922

Answered by StefanBertels
RollsChris asked this question in Q&A
Discussion options

You must be logged in to vote

This is not my library so maybe the following answer is a guess.

But from what I learned by using the library and sometimes diving into details, the main reason is probably that map, filter, bind, fold etc are common names for those FP operations outside of C#. As a lot of concepts in LanguageExt try to bring FP into "C# world" this makes it a lot easier to understand concepts and to communicate with others.

Probably the name choice in C# (select, where, selectmany, aggregate) was unfortunate from today's FP perspective -- it was heavily inspired by SQL terminology. But that's history.

For practical reasons LanguageExt types supports C# select, where ...., too. This enables LINQ style -- …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by louthy
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants