Jay Taylor's notes
back to listing indexscala - Convert List of tuple to map (and deal with duplicate key ?) - Stack Overflow
[web search]
Original source (stackoverflow.com)
Tags:
stackoverflow.com
Clipped on: 2012-10-11
I was thinking about a nice way to convert a List of tuple with duplicate key btw, actual type of key-value I use here is
|
||||
add comment | ||||
Group and then project:
More scalish way to use fold, in the way like there (skip |
|||||||||
|
Here's another alternative:
|
|||||||||||||||
|
Your Answer
community wiki
Not the answer you're looking for? Browse other questions tagged scala map or ask your own question.
Community Bulletin
Related
about | faq | blog | chat | data | legal | privacy policy | jobs | advertising info | mobile | contact us | feedback
■ stackoverflow.com ■ api/apps ■ careers ■ serverfault.com ■ superuser.com ■ meta ■ area 51 ■ webapps ■ gaming ■ ubuntu ■ webmasters ■ cooking ■ game development ■ math ■ photography ■ stats ■ tex ■ english ■ theoretical cs ■ programmers ■ unix ■ apple ■ wordpress ■ physics ■ home improvement ■ gis ■ electrical engineering ■ android ■ security ■ bicycles ■ dba ■ drupal ■ sharepoint ■ scifi & fantasy ■ user experience ■ skeptics ■ rpg ■ judaism ■ mathematica
site design / logo © 2012 stack exchange inc; user contributions licensed under cc-wiki with attribution required