I've been using the map method in Java and JavaScript for a while now, and every time I use it I wonder why was it named "map". It wasn't obvious to me how the name corresponded to the actual functionality.

So, I went to my favorite research site, twitter.com (lol), and asked the community.

Within a matter of minutes, I received wonderful replies and all of a sudden, everything made sense!

It's not some relation to the data structure Map that I've been using all my life. It's a math term!

Laurie was even kind enough to let me know I wasn't a total failure for not knowing this.

So there you have it folks! Hopefully this was a "TIL" moment for you as well.