F# – Sets

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

F# sets in F# is a data structure that acts as a collection of items without preserving the order in which items are inserted. Sets do not allow duplicate entries…

Continue ReadingF# – Sets

F# – Sequences

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

F# Sequences, like lists, also represent an ordered collection of values. However, the elements in a sequence or sequence expression are computed when required. They are not computed at once,…

Continue ReadingF# – Sequences

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

F# – while.do Loops

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

The F# while.do Loops expression is used to perform iterative execution while a specified test condition is true. Syntax F# while.do Loops while test-expression do body-expression The body expression must have a…

Continue ReadingF# – while.do Loops