Module: Kl::Primitives::GenericFunctions
- Included in:
- Environment
- Defined in:
- lib/kl/primitives/generic_functions.rb
Overview
The following functions are implemented as special forms in Kl::Compiler:
- defun
- lambda
- let
- freeze
- type
Instance Method Summary collapse
-
#freeze(exp) ⇒ Object
Freeze is also provided as a normal function to support the partial application of zero arguments case.
Instance Method Details
#freeze(exp) ⇒ Object
Freeze is also provided as a normal function to support the partial application of zero arguments case. In this case it becomes a non-special-form.
24 25 26 |
# File 'lib/kl/primitives/generic_functions.rb', line 24 def freeze(exp) Kernel.lambda { exp } end |