Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A type in solidity that allows access to arbitrary elements via a key, similar to a dictionary or hashmap in other languages.
2
votes
0
answers
79
views
Why can mappings not be used as parameters or return values of public functions?
The solidity docs say this about mappings, but don't give a reason why:
Mappings can only have a data location of storage and thus are allowed for state variables, as storage reference types in funct …