let inherit (builtins) concatStringsSep attrValues mapAttrs; inherit (import ./utils.nix) optionalString squash; in builtinsInfo: let showBuiltin = name: { doc, args, arity, experimental-feature, }: let experimentalNotice = optionalString (experimental-feature != null) '' This function is only available if the [${experimental-feature}](@docroot@/contributing/experimental-features.md#xp-feature-${experimental-feature}) experimental feature is enabled. ''; in squash ''
${name} ${listArgs args}
${doc} ${experimentalNotice}
''; listArgs = args: concatStringsSep " " (map (s: "${s}") args); in concatStringsSep "\n" (attrValues (mapAttrs showBuiltin builtinsInfo))