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

[REBOL] Re: Vertical formatting etc

From: greggirwin:starband at: 2-Oct-2001 9:36

<< a)If I have e.g., ["Put" "them" "together"] how will I take ["Put them together"] b)If I have [a b c] how will I take [a b c ] c) If I have [0 0 0 0] how will I ask to print any non-zero numbers and what output will I have?
>>
I'm not clear on what you're asking, but I think you're talking about outputting the results to the console. In that case, look at prin and print. print prints with a newline and prin does not. You can also use ASCII escape sequences to position the cursor in the console. I think the Core docs talk about it but Ingo Hohmann's console dialect article on the REBOL Forces site provides the best info I've seen on it. To keep only non-0 numbers, you should be able to use exclude:
>> exclude [0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9][0]
== [1 2 3 4 5 6 7 8 9] --Gregg