Home » F# Generics

F# Generics

F# allows you to write generic function, method, type, variable etc. It helps to avoid repeating of code for each type. By writing generic code you can apply it for any type or value.

Syntax:


F# Generic Function Example

Output:

1 2  
Next TopicF# Records

You may also like