Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P8611
(An Untitled Masterwork)
Active
Public
Actions
Authored by
EBernhardson
on Jun 13 2019, 9:38 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F29522452: raw.txt
Jun 13 2019, 9:38 PM
2019-06-13 21:38:48 (UTC+0)
Subscribers
None
public Map<String, Collection<String>> confusions() throws IOException {
Map<String, Collection<String>> res = new HashMap<>();
for (CSVRecord record : parse(M2Resources.CONFUSIONS)) {
String from = record.get("charFrom");
String to = record.get("charTo");
res.computeIfAbsent(from, x -> new ArrayList<>()).add(to);
}
return res;
}
Event Timeline
EBernhardson
created this paste.
Jun 13 2019, 9:38 PM
2019-06-13 21:38:48 (UTC+0)
Log In to Comment