Javatpoint Logo
Javatpoint Logo

F# String Built-in functions


F# String Concatenation Example

F# allows us to concatenate two strings by using + (plus) operator.

Output:

Hello FSharp

F# Substrring Example

Output:

Sharp
Sharp

F# Get Char Of Given Index Using Char () Method Example

Output:

p

F# String Compare Example

In F#, we can use Equals () method or comparison (=) operator to compare two string.

Output:

true
false
true
false

F# String Contains Example

The Contains () method in F# searches the specified string in the given string.

Output:

true
false

F# String Trim () Example

Trim method of F# removes beginning and ending whitespaces.

Output:

Hello FSharp
HelloFSharp
Next TopicF# Tuples




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA