Questions About Defining Lazy

Line 5633 of prim-types.fs (v1.9.7.8) has the following type abbreviation:

type 'T ``lazy`` = Lazy<'T>

I have a few questions about this.

  • What do double return lines mean?
  • Is this definition equivalent type lazy<'T> = Lazy<'T>? (If not, how is it different?)
+5
source share
2 answers

Double back ticks are a way to allow the use of the F # keyword as an identifier. Another example might be

let ``let`` = 42
+8
source

, F # O'Caml, (, 'a list, int array ..), .NET- (, list<'a>, array<int> ..), ( , , lazy - ). O'Caml (, let (m:(int,string) Map) = Map.empty let (m:Map<int,string>) = Map.empty).

+5

All Articles