diff --git a/lib/trivial.nix b/lib/trivial.nix index 735aa55e0dce..cc9665a61316 100644 --- a/lib/trivial.nix +++ b/lib/trivial.nix @@ -56,6 +56,8 @@ rec { # nix-repl> fix f # { bar = "bar"; foo = "foo"; foobar = "foobar"; } # + # Type: fix :: (a -> a) -> a + # # See https://en.wikipedia.org/wiki/Fixed-point_combinator for further # details. fix = f: let x = f x; in x;