I have an issue in my Dart Programme. Here is a list of emojis:
[[, , ], [], [, , ], [], [], []] //List
Inside the list there are multiple lists (as you can see). I want to remove empty lists []
. Also I want to Join [, , , , , ] into a single list.
l = [[1,2,3], [], [4,5], [], [6]]; var merged = l.reduce((a, b) => a + b); print(merged);`
– pskink Apr 16 '21 at 09:53