F# – Lists

  • Post author:
  • Post category:F#
  • Post comments:1 Comment

In F# Lists, a list is an ordered, immutable series of elements of the same type. It is to some extent equivalent to a linked list data structure. The F#…

Continue ReadingF# – Lists

F# – Records

  • Post author:
  • Post category:F#
  • Post comments:1 Comment

An F# Records is similar to a tuple, however, it contains named fields. For example, type website = { title : string; url : string } Defining F# Records A record is…

Continue ReadingF# – Records

F# – Tuples

  • Post author:
  • Post category:F#
  • Post comments:1 Comment

An F# tuples is a comma-separated collection of values. These are used for creating ad hoc data structures, which group together related values. For example, (“Zara Ali”, “Hyderabad”, 10) is a 3-tuple…

Continue ReadingF# – Tuples

F# – Options

  • Post author:
  • Post category:F#
  • Post comments:4 Comments

The F# options type in F# is used in calculations when there may or may not exist a value for a variable or function. Option types are used for representing optional values…

Continue ReadingF# – Options

F# – Strings

  • Post author:
  • Post category:F#
  • Post comments:1 Comment

In F# Strings, the string type represents immutable text as a sequence of Unicode characters. F# Strings Literals String literals are delimited by the quotation mark (") character. Some special…

Continue ReadingF# – Strings