Created
June 27, 2018 08:28
-
-
Save Keksinautin/d27bcac5067771c74f42b5b73b14eb37 to your computer and use it in GitHub Desktop.
What is the right way here?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final a = ['11', '22', '33']; | |
final m = new Map<String, int>.fromIterable( | |
a, | |
key: (String s) => s.substring(1), | |
value: (String s) => s.codeUnitAt(0), | |
); | |
print(m); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment