Last active
September 21, 2018 10:55
-
-
Save michael-wolfenden/dc100aafdbf8c14fc03c655404de3c74 to your computer and use it in GitHub Desktop.
Map Find
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ServiceStack.Text; | |
using LanguageExt; | |
using static LanguageExt.Prelude; | |
using static LanguageExt.Map; | |
var people = Map((1, "Rod"), (2, "Jane"), (3, "Freddy")); | |
Option<string> result = find(people, 1); | |
result.PrintDump(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="ServiceStack.Text" version="5.2.0" targetFramework="net45" /> | |
<package id="LanguageExt.Core" version="3.0.24" targetFramework="net45" /> | |
<package id="System.ValueTuple" version="4.5.0" targetFramework="net45" /> | |
</packages> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment