Javatpoint Logo
Javatpoint Logo

F# String

String in F# is an immutable sequence of Unicode characters. F# allows us to perform manipulations on string. Some basic operations are like -concatenation, fetching character, substring etc.

F# string is an alias for System.String in the .Net framework.


F# String Example

Output:

Hello FSharp

F# ASCII String Example

Output:

97
98
99

You can access individual character of a string by using array like syntax.


F# Accessing character using array like syntax

Output:

h




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA