Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit cc0e844

Browse files
Add motivation for package
1 parent 4fcc18e commit cc0e844

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# array-string-map
22
A map that encodes all array items into a string format, so that arrays work like tuples in Python when used for a map.
3+
4+
## Motivation
5+
6+
I was using a Map to store array values, and I kept on running into a bug where I could not get those values back. I got fed up, and then after some Googling, realized that array lookups will not work when two different arrays with the same elements are used (such as when I use array literal syntax to create them). My solution was to encode the values as string keys.

0 commit comments

Comments
 (0)