Filter out empty llls

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
gratkowski
Posts: 41
Joined: Tue Aug 21, 2012 12:50 pm

Filter out empty llls

Post by gratkowski » Wed Jan 29, 2020 12:45 am

Hello, how do I filter out empty llls ?
i.e. [ [ ] [ ] [ 0 ] [ 0 ] [ 1 ] [ 0 ] 0 [ 0 ] [ 0 ] [ 0 ] [ 0 ] [ 0 ] [ 0 ] [ 0 ] [ 1 ] [ 0 ] [ 0 ] 0 ]
I would like to filter out all [] and the 0 but not [ 0 ] and [ 1 ]

danieleghisi
Site Admin
Posts: 1349
Joined: Fri Dec 03, 2010 1:25 pm

Re: Filter out empty llls

Post by danieleghisi » Wed Jan 29, 2020 10:43 pm

have a look at bach.sieve (with the @maxdepth attribute). Look at bach.mapelem as well, maybe!
Hope this helps,
Daniele

Post Reply