JavaScript | PHP
Return the first generator type in the argument list of function.
function
Example:
const std = @import("std"); const zigar = @import("zigar"); fn world(generator: zigar.function.Generator(?bool, false)) void { generator.end(); } comptime { std.debug.assert(zigar.function.GeneratorArgOf(world) == zigar.function.Generator(?bool, false)); }
Arguments:
anytype
Return value:
Generator(T, allocating)
Generator(T, allocating) | GeneratorOf(function)
There was an error while loading. Please reload this page.