2

For example, i have:

mapping(string => MyType) map;
var value = map[key];

What is equal 'value' if 'map' not contain the 'key'?

And how to determine the presence of the key in mapping?

q9f
  • 32,913
  • 47
  • 156
  • 395
bream
  • 27
  • 3

0 Answers0