Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
pragma solidity ^0.4.18;
contract demo {
mapping(uint => uint) public map;
event Finished();
function seedMap(uint _start, uint _end) public {
for(uint i=_start;i<_end;i++) {
map[i] = i;
function open(uint _key, uint _value) public {
map[_key] = _value;
function query(uint _key) constant returns(uint) {
return map[_key];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment