Skip to content

Instantly share code, notes, and snippets.

@MikeMKH
Created January 25, 2015 15:02
Show Gist options
  • Select an option

  • Save MikeMKH/4455d98b8f7937ebacbf to your computer and use it in GitHub Desktop.

Select an option

Save MikeMKH/4455d98b8f7937ebacbf to your computer and use it in GitHub Desktop.
A very simple example of Map using an increment function in C# and Clojure.
(map inc [1 2 3 4])
;; [2 3 4 5]
new[] {1, 2, 3, 4}
.Select(x => x+1);
// { 2, 3, 4, 5 }
@MikeMKH
Copy link
Author

MikeMKH commented Jan 25, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment