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

[REBOL] Re: if and parens

From: jason:cunliffe:verizon at: 5-Oct-2002 23:10

Joel Neely wrote:
> Since you just want to exclude subdirectories from the list of > contents of the current directory, you could write > > foreach elt read %. [if not dir? elt [print elt]] > > instead.
Andrew Martin wrote:
> And this is far more simpler: > foreach File read %. [if #"/" <> last File [print File]]
Both are nioe, but as Andrew pointed out recently, using the trailing "/" method to determine directories overcomes a bug in 'dir? ./Jason