Replies: 3 comments 8 replies
-
ok found association lists in liquidsoap book. |
Beta Was this translation helpful? Give feedback.
-
Hey @vitoyucepi |
Beta Was this translation helpful? Give feedback.
-
I did investigate that. The example in the book uses:
I'm looking for something more like:
where the new list is ordered like the remaining songs in the playlist |
Beta Was this translation helpful? Give feedback.
-
I am trying iterate over a list ( list-a ) which is ordered and in the context of iterator object retrieve the matching object from another list (list-b) to create another list (list-c) which is ordered the same as list -a. It would be much easier if I could have an Map type object for list-b and retrieve by key but I cannot find any references to map objects. I have to iterate over list-b for every item in list-a which is very inefficient.
It's likely it just because I am not well versed in functional programming. I am wondering if I am missing something and if there is a functional pattern to achieve the above efficiently.
Beta Was this translation helpful? Give feedback.
All reactions