Skip to content

Instantly share code, notes, and snippets.

@JohSand
JohSand / Gen.fsx
Last active April 14, 2025 19:39
Avoid permutation explosion
namespace Gist
type Ctx<'a, 'b>(a: 'a, b: 'b) =
member _.A = a
member _.B = b
type Ctx<'a>(a: 'a) =
member _.Create<'t>(t: 't) = Ctx<'a, 't>(a, t)
[<Struct>]