code register log in programs messages download about privacy terms french production
home / documentation / Dictionary
examples
dictionary not operator evaluation
input
!{}
result
false
dictionary new
input
Dictionary.new
result
{}
dictionary new access a
input
Dictionary.new(a: 1, b: 2).a
result
1
dictionary access b
input
{ a: 1, b: 2 }.b
result
2
dictionary empty
input
{}
result
{}
dictionary equality comparison
input
{} == {}
result
true
dictionary to list
input
{}.to_list
result
[]
instance functions