Skip to content

Functional Programming⚓︎

Look back on linq

A long time ago, when I touched keywords like map/filter/reduce in Swift.

At that time, I generally called it Syntax Sugar. Today, I got a chance to continue digging into this concept as I am touching LINQ in C#.

Story begins

My learning started from this fun pic:

image

After some investigation, I got this mapping from Swift to C#:

  • map -> Select -> projection -> SELECT (SQL)
  • filter -> Where -> selection -> WHERE
  • reduce -> Aggregate ->
  • Ordering (ORDER BY)?
  • Grouping (GROUP BY)?