defined?

checks if given type is defined


Parameters

defined? type :type :string :word :literal

Returns

  • :logical

Examples

copy
defined? :cat ; => false defined? "cat" ; => false defined? 'cat ; => false define :cat [ init: constructor [name :string age :integer] ] defined? :cat ; => true defined? "cat" ; => true defined? 'cat ; => true defined? :dog ; => false

Related