F# Recipe #2 – The type int is not compatible with type unit

Problem When writing your first F# program , you get the following error “The type int is not compatible with type unit”. You need to fix this. Solution The type unit is F#’s version of void. This indicates that the compiler was expected an return value of int but there is no return value. This … Continue reading F# Recipe #2 – The type int is not compatible with type unit