Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kLue2146y@refi64 well I used such tuple to describe similarities for event records, so once there was match I’m able to append IDs into each list
-
mt3o19146y@refi64 pattern matching is like switch/case on steroids. Erlang (and elixir) allow to match cases based on complex statements, like (looking at python) tuples. If VERY effective tool.
-
mt3o19146y@kLue to give you a glimpse of what happens in lower level, is not technically an index. Rather a pair of items, index+value. So the index can be anything. For consistency, it has to be immutable.
For example in java world, you have maps, hashmap in particular, where everything can be the key. The key is stored as reference, but it's organized by objects hash, not real value.
I guess you are amazed became you are used to arrays from C, where array is pointer to the address in the memory and has to be used together with index (shift from the blocks start).
Related Rants
-
cr7holmes4Never tell anybody that you know how to code...
-
raven4I wanted to work on my sideprojects on the last days of the year but then my wife spawned a childprocess and s...
-
localjoost3The first time writing code in an airplane was very uncomfortable. Everyone around me thought I was hacking th...
This blew my mind :O how cool is that !?!
question
wk136