HH\Coeffects\backdoor

Creates an unsafe way to call a function by providing defaults coeffects

namespace HH\Coeffects;

function backdoor<Tout>(
  (function(): Tout) $fn,
): Tout;

EXTREMELY UNSAFE. USE WITH CAUTION.

Parameters

  • (function(): Tout) $fn

Returns

  • Tout