This commit is contained in:
parent
2db90d3767
commit
2317a58f39
|
@ -1 +1,19 @@
|
||||||
Console.WriteLine("Hello World!");
|
using Sanchime.Functional.Core.Products;
|
||||||
|
using Sanchime.Functional.Core.Extensions;
|
||||||
|
using Sanchime.Toolkits;
|
||||||
|
|
||||||
|
// Test<int> test = new Test<int>();
|
||||||
|
|
||||||
|
// Console.WriteLine(test.Map((Test<int> x) => {x.Value = 2; return x;}).Value);
|
||||||
|
|
||||||
|
// Console.WriteLine(test.Value);
|
||||||
|
|
||||||
|
foo(10);
|
||||||
|
foo(Option.None);
|
||||||
|
|
||||||
|
void foo(Option<int> option)
|
||||||
|
{
|
||||||
|
var res = option.Map(x => x + 2);
|
||||||
|
res.WriteLine();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Sanchime.Functional\Sanchime.Functional.csproj" />
|
||||||
|
<ProjectReference Include="..\Sanchime.Toolkits\Sanchime.Toolkits.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
|
Loading…
Reference in New Issue