Class: Dhall::Builtins::List_reverse

Inherits:
Dhall::Builtin show all
Defined in:
lib/dhall/builtins.rb

Instance Method Summary collapse

Methods inherited from Dhall::Builtin

#as_json, #unfill

Methods inherited from Expression

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

Instance Method Details

#call(arg) ⇒ Object



329
330
331
332
333
334
335
336
337
# File 'lib/dhall/builtins.rb', line 329

def call(arg)
	fill_or_call(arg) do
		if arg.is_a?(Dhall::List)
			arg.reverse
		else
			super
		end
	end
end