Convert a slice to a map

To summarize that:

  • there’s no build in method to convert a slice to a map.
  • you will have to implement that on your own.

General finding

  • the Neat solution is a neglectable slower than ScriptKiddy
    guess due to generating a new seq for looping and, index access
  • the setinMap has a startup overhead but as data grows setInMap it is faster
    many merges are more expensive than later duplicating the Stores map

Performance

The performance depends on the size of the list and internal methods used.

  • if you don’t have large lists or complex structures it does not matter too much
  • if you have - the best implementation is that one for your data structures
  • don’t optimize unless necessary :wink: