2 people like it.

empty list constructor

Shows empty list constructor

1: 
2: 
3: 
let a: int list = []
let b: string list = []
System.Object.ReferenceEquals( a, b )
val a : int list

Full name: Script.a
Multiple items
val int : value:'T -> int (requires member op_Explicit)

Full name: Microsoft.FSharp.Core.Operators.int

--------------------
type int = int32

Full name: Microsoft.FSharp.Core.int

--------------------
type int<'Measure> = int

Full name: Microsoft.FSharp.Core.int<_>
type 'T list = List<'T>

Full name: Microsoft.FSharp.Collections.list<_>
val b : string list

Full name: Script.b
Multiple items
val string : value:'T -> string

Full name: Microsoft.FSharp.Core.Operators.string

--------------------
type string = System.String

Full name: Microsoft.FSharp.Core.string
namespace System
Multiple items
type Object =
  new : unit -> obj
  member Equals : obj:obj -> bool
  member GetHashCode : unit -> int
  member GetType : unit -> Type
  member ToString : unit -> string
  static member Equals : objA:obj * objB:obj -> bool
  static member ReferenceEquals : objA:obj * objB:obj -> bool

Full name: System.Object

--------------------
System.Object() : unit
System.Object.ReferenceEquals(objA: obj, objB: obj) : bool
Next Version Raw view Test code New version

More information

Link:http://fssnip.net/qm
Posted:6 years ago
Author:fsoikin
Tags: list