Javatpoint Logo
Javatpoint Logo

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




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA