Sha256: e0fa09a332f59c451998b76898b8a0beca57862f1d507d017f857c918d443768

Contents?: true

Size: 451 Bytes

Versions: 14

Compression:

Stored size: 451 Bytes

Contents

# This file demonstrates several Hash features in Nila

variable = 5

inst_section = {
  'cello' => 'string',
  'clarinet' => 'woodwind',
  'drum': 'percussion',
  'oboe' : 'woodwind',
  'trumpet' => 'brass',
  'violin' => 'string',
  :guitar => 'string'
}

if variable == 10
   print "Variable is 10"
elsif variable == 20
   print "Variable is 20"
else
   print "Variable is something else"
end

student_ages = {"Jack" => 10,"Jill" => 12,"Bob" => 14}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
nilac-0.0.4.3.9.8 shark/test_files/hashes.nila
nilac-0.0.4.3.9.7.1 shark/test_files/hashes.nila
nilac-0.0.4.3.9.7 shark/test_files/hashes.nila
nilac-0.0.4.3.9.6 shark/test_files/hashes.nila
nilac-0.0.4.3.9.5 shark/test_files/hashes.nila
nilac-0.0.4.3.9.4 shark/test_files/hashes.nila
nilac-0.0.4.3.9.3 shark/test_files/hashes.nila
nilac-0.0.4.3.9.2 shark/test_files/hashes.nila
nilac-0.0.4.3.9.1 shark/test_files/hashes.nila
nilac-0.0.4.3.9 shark/test_files/hashes.nila
nilac-0.0.4.3.8 shark/test_files/hashes.nila
nilac-0.0.4.3.7 shark/test_files/hashes.nila
nilac-0.0.4.3.6 shark/test_files/hashes.nila
nilac-0.0.4.3.4 shark/test_files/hashes.nila