New function isFunctor()

This commit is contained in:
Celestino Amoroso 2024-04-28 06:43:57 +02:00
parent bf8f1a175f
commit fc0e1ffaee

View File

@ -39,6 +39,11 @@ func isNumberString(v any) (ok bool) {
return isString(v) || isNumber(v)
}
func isFunctor(v any) (ok bool) {
_, ok = v.(Functor)
return
}
func numAsFloat(v any) (f float64) {
var ok bool
if f, ok = v.(float64); !ok {