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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA