Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: getting rid of empty string in a block.

From: cybarite:sympatico:ca at: 13-Mar-2002 12:01

one way to remove empty strings from a collection is difference ["A" "" "C" "" "E" ] [""] but because it is difference, there must be an empty string in the first collection. To get around that you can add one then remove all with append or union: difference union [""] ["A" "C" "E" "" "F" ] [""] or difference union [""] read/lines %some-file.txt [""]