string key map formulatext salesforce soql code example
Example: instantiate a map with soql
Map<ID, Contact> m = new Map<ID, Contact>([SELECT Id, LastName FROM Contact]);
Map<ID, Contact> m = new Map<ID, Contact>([SELECT Id, LastName FROM Contact]);