Class: Dhall::Builtins::Natural_build
Instance Method Summary
collapse
#as_json, #unfill
Methods inherited from Expression
#&, #*, #+, #as_dhall, #cache_key, #concat, decode, #deep_merge, #deep_merge_type, #dhall_eq, #digest, #fetch, #merge, #normalize, #resolve, #shift, #slice, #substitute, #to_cbor, #to_proc, #to_s, #|
Instance Method Details
#fusion(arg, *bogus) ⇒ Object
96
97
98
99
100
101
102
103
104
|
# File 'lib/dhall/builtins.rb', line 96
def fusion(arg, *bogus)
if bogus.empty? &&
arg.is_a?(Application) &&
arg.function == Natural_fold.new
arg.argument
else
super
end
end
|