types.Bool.clone
Method on every
boolclone(): any
Returns the bool itself.
Return value
this, unchanged, for the same reason as types.Integer.clone.
Notes
Takes no arguments. clone is a keyword, so true.clone() never parses; see types.Integer.clone for the operator and computed-index alternatives.
Example
println("clone true =", clone true)
let x = true
println("x[\"clone\"]() == x =", x["clone"]() == x)Output:
clone true = true
x["clone"]() == x = trueSee also
clone | Returns the integer itself. |
clone | Returns the float itself. |
weakref | Returns the bool itself. |
| bool | class index |