first-class objects
definition: instances of a type that can be assigned to an identifier, passed as a parameter or returned by a function.
e.g.
yell=print
yell('hello world')
in this case, yell is considered as an alias of function print.
first-class objects
definition: instances of a type that can be assigned to an identifier, passed as a parameter or returned by a function.
e.g.
yell=print
yell('hello world')
in this case, yell is considered as an alias of function print.