Arie, But when you apply func to [x y] it seems to me that it starts to behave like Lisp.
Am I wrong? Emeka On Mon, Aug 23, 2010 at 1:51 PM, Arie van Wingerden <[email protected]>wrote: > Hi, > the answer of Henrik is fine. > To answer the "Lisp" part: in Rebol [x y] does not mean: > - apply function x to argument y > which in the Lisp list (x y) would be the case. > [] in Rebol is just data. > Regards, > Arie > > 2010/8/22 Emeka <[email protected]> > > > Hello All, > > > > Is [] a cousin of LISP list () (serving the purpose of procedure call and > > data structure) > > > > > > Regards, > > Emeka > > > > On Sun, Aug 22, 2010 at 6:09 PM, Izkata <[email protected]> wrote: > > > > > If you open the file in a text editor, you'll see that it does contain > > > "AfricanChild" on one line. > > > > > > All that's needed is a newline in the middle: > > > > > > write kool "African" > > > write/append kool newline > > > write/append kool "Child" > > > > > > Alternatively, 'write has another refinement that could help here: > > > > > > write/lines kool "African" > > > write/lines/append kool "Child" > > > > > > The /lines refinement works similar to read/lines - this would result > in > > > the > > > same as the above: > > > > > > write/lines kool [ "African" "Child" ] > > > > > > > > > > > > On Sun, Aug 22, 2010 at 11:46 AM, Emeka <[email protected]> wrote: > > > > > > > Hello All, > > > > > > > > I have the below; > > > > > > > > kool: %gin.txt > > > > > > > > write kool "African" > > > > write/append kool "Child" > > > > > > > > Now, I would want to read the file , and print first "African", and > > > second > > > > "Child" > > > > > > > > I tried > > > > read/lines kool > > > > == [ "AfricanChild"] > > > > > > > > I was looking for something like [ "African" "Child"] > > > > > > > > Regards, > > > > Emeka > > > > > > > > > > > > -- > > > > To unsubscribe from the list, just send an email to > > > > lists at rebol.com with unsubscribe as the subject. > > > > > > > > > > > > > > > > > -- > > > $BAU$G$FL4(B > > > > > > -- > > > To unsubscribe from the list, just send an email to > > > lists at rebol.com with unsubscribe as the subject. > > > > > > > > > > > > -- > > To unsubscribe from the list, just send an email to > > lists at rebol.com with unsubscribe as the subject. > > > > > > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. > > -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
