Class: Dhall::Operator::ListConcatenate

Inherits:
Dhall::Operator show all
Defined in:
lib/dhall/ast.rb,
lib/dhall/normalize.rb

Constant Summary

Constants inherited from Dhall::Operator

OPERATORS

Instance Method Summary collapse

Methods inherited from Dhall::Operator

#as_json, decode

Methods inherited from Expression

#&, #*, #+, #annotate, #as_dhall, #cache_key, #call, #concat, decode, #deep_merge, #deep_merge_type, #dhall_eq, #digest, #fetch, #fusion, #merge, #resolve, #shift, #slice, #substitute, #to_binary, #to_cbor, #to_proc, #to_s, #|

Instance Method Details

#normalizeObject



229
230
231
232
233
234
235
236
237
# File 'lib/dhall/normalize.rb', line 229

def normalize
	normalized = super
	case normalized.rhs
	when EmptyList
		normalized.lhs
	else
		normalized.lhs.concat(normalized.rhs)
	end
end