FSharpx.Extras


FSharpx.Extras

FSharpx.Extras

FSharpx.Extras implements:

  • Several standard monads: State, Reader, Writer, Either, Continuation, Distribution
  • Validation applicative functor
  • General functions like flip
  • Some asynchronous programming utilities
  • Functions to make C# - F# interop easier.
  • A few features for working with HTTP applications.

FSharpx.Extras is a set of additions on top of FSharpx.Collections and FSharpx.Async

FSharpx.Text.StructuredFormat

This is a separate component:

  • FSharpx.Text.StructuredFormat provides data structures and functions for pretty printers.
 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
#r "FSharpx.Collections.dll"
#r "FSharpx.Extras.dll"

open FSharpx

open FSharpx.Collections

// Access the object that proves that 'List' is a 'monoid'

FSharpx.Collections.List.monoid

Examples

namespace Microsoft.FSharp.Collections
Multiple items
module List

from Microsoft.FSharp.Collections

--------------------
type List<'T> =
  | ( [] )
  | ( :: ) of Head: 'T * Tail: 'T list
  interface IEnumerable
  interface IEnumerable<'T>
  member GetSlice : startIndex:int option * endIndex:int option -> 'T list
  member Head : 'T
  member IsEmpty : bool
  member Item : index:int -> 'T with get
  member Length : int
  member Tail : 'T list
  static member Cons : head:'T * tail:'T list -> 'T list
  static member Empty : 'T list

Full name: Microsoft.FSharp.Collections.List<_>
Fork me on GitHub