Rebol 程式設計/spec-of
外觀
SPEC-OF value
返回函式規範的副本。
SPEC-OF 是一個函式值。
- 值 -- (型別:任何)
spec-of: func [
"Returns a copy of the spec of a function."
value
][
case [
object? :value [none]
any-function? :value [copy/deep third :value]
'else [cause-error 'script 'cannot-use reduce ['reflect type? :value]]
]
]