I would like to initialise my mapping in the declaration line in a smart contract. I was wondering what is the best practice? I have tried the following but Remix is giving me errors:
mapping(address _addr) public view myMap = [ addr-1 : true, addr-2 : false, addr-3 : true ];