We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentaac14d3 commitdf93686Copy full SHA for df93686
tests/fsharp/core/fsfromcs/test.cs
@@ -81,6 +81,17 @@ static int Main()
81
{Console.WriteLine("i after duplication (2nd technique) = {0}",s);}),
82
myList2);
83
84
+// No Func overloads are available for FuncConvert.ToFSharpFunc
85
+// myList2 =
86
+// ListModule.Map<int,string>
87
+// (FuncConvert.ToFSharpFunc((Func<int,string>) delegate(int i) { return i.ToString() + i.ToString(); }),
88
+// myList);
89
+
90
+ListModule.Iterate<string>(FuncConvert.ToFSharpFunc<string>(s=>{Console.WriteLine("s = {0}",s);}),myList2);
91
92
+//Note: This call becomes ambiguous if Func overloads of FuncConvert.ToFSharpFunc are added
93
+myList2=ListModule.Map<string,string>(FuncConvert.ToFSharpFunc<string,string>(i=>i.ToString()+i.ToString()),myList2);
94
95
}
96
97
// Construct a value of each type from the library