If I specify function value as: let applyFirst f elements = if Seq.isEmpty elements then None else elements |> Seq.head |> f
I\'m curious why this let f开发者_开发技巧 = (fun a b -> a, b) >> obj.Equals gives the error
I recently discovered Nemerle and F#, but I can\'t find any way to debug my applications. MonoDevelop 2.6 lacks support of Nemerle and F#, 2.4.2 and earlier crashes because of newer gnome-sharp lib开发
Is there a built-in \"make pair\" function or operator? I know this is trivial, but开发者_JAVA技巧 it would ease function composition in some cases.
I have several generic equality functions, which are used when overriding Object.Equals: type IEqualityComparer<\'T> = System.Collections.Generic.IEqualityComparer<\'T>
I found this C# code for CRC16 but I need it on F# : using System; public class Crc16 { const ushort polynomial = 0xA001;
Let\'s say I have defined some type abbreviation type Individual = Double array 开发者_开发知识库
I know it\'s possible to add methods and properties to discriminated unions, but can you add an immutable field that has to be set when an instance the union is created, much like the fields in a reco
Any ideas why the following doesn’t compile? On the last line it tells me that Module1 is not defined.If I remove the “internal” from M开发者_StackOverflow社区odule1 it works fine.
I have the following code: public abstract class A ... public class B : A ... public class C : A ... void my_fct(A x) {