map_access.gravity 170 B

12345678910
  1. #unittest {
  2. name: "Test map access.";
  3. error: NONE;
  4. result: 669;
  5. };
  6. func main() {
  7. var map = ["Andrea":22, "Marco":23, "test":666];
  8. return map.count + map["test"];
  9. }