メインコンテンツへスキップ

引数

function
必須
Function to clone. Passing a non-function raises a type error.

戻り値

function
New function produced by the newcclosure, C closure, or Luau closure clone path.

例

Create a cloned closure from a function.