Next: , Previous: , Up: Functions   [Contents][Index]


20.12.7 Function Comparison

The equality operator (==) and the inequality operator (!=) can be applied to functions. They evaluate to true if the operands are the same function value. Examples:

(poke) lambda void: {} == lambda void: {}
0
(poke) lambda void: {} != lambda void: {}
1
(poke) var f = void: {}
(poke) f == f
1
(poke) f != f
0