Deduct "New List" with "new Value" only for some "specific Tag", from Old List, using "List Comprehension".

Papa Tana papa.tana101@REDACTED
Sun Jul 19 10:17:30 CEST 2020

I'm working on thing such below, but I don't know how to combine it:

[ {Tag, 255} || {Tag, Value} <- TV, Tag == length ];
[ {Tag, Value} || {Tag, Value} <- TV, Tag /= length ].

Best Regards,

2020-07-19 10:59 UTC+03:00, Papa Tana <papa.tana101@REDACTED>:
> Hi,
> Thanks for your answer.
>> Sorry, I didn't see you required list comprehension. Don't know why you
>> have
>> this requirement, though - many other ways to do it.
> This T list is just a dummy example.
> I have this requirement because in real life, I have 125 types of list
> "REQ" compound of {Tag, Value}.
> I need to process some tags inside them, transform, and answer back
> with a response "RESP".

More information about the erlang-questions mailing list