Re: Help
- Posted by Rolf Schroeder <rolf.schroeder at DESY.DE> Aug 08, 2000
- 672 views
--------------7BEF7D3CA60D557743DA846F Asif Masood Baloch wrote: > > Hi Rolf, > Yeah, i suceeded in installing EUPHORIA and made some programs myself like > "Hello World" and "addition, Substraction, Division,etc". I have problem > understanding the concepts of append() and prepend(). Also, can you tell me > what would be the basic concepts that i should understand/study now? > EUPHORIA is really promisiong and i believe it will help me a lot if i work > on it. Thank you so much for help. > > -Regards > > Asif Hello Asif, I attached a short example 'tst.ex' which you could run under ed.ex under DOS or in the cmd-window of win32. Let me know if this helps to explain append() and prepend(). Under ed, press ESC+h, l (help library) and then ESC+f, searching for:<append . It will lead you to the explanation for append(). Look there for the examples. Have a nice day, Rolf --------------7BEF7D3CA60D557743DA846F name="Tst.ex" Content-Disposition: inline; filename="Tst.ex" -- Examples of append() and prepend() sequence s1, s2 -- define sequences s1 and s2 atom a1, a2 -- define atoms a1 and a2 s1 = { 1, 2, 3, 4} -- initializing . . . s2 = "Hello" -- this is also {72,101,108,108,111} a1 = 987 a2 = 3.14 puts(1,"s1 : ") ? s1 puts(1,"s1 & s2 : ") ? s1 & s2 -- concatenation puts(1,"append(s1,s2) : ") ? append(s1,s2) puts(1,"prepend(s1,s2): ") ? prepend(s1,s2) puts(1,"append(s1,a1) : ") ? append(s1,a1) puts(1,"prepend(s1,a1): ") ? prepend(s1,a1) puts(1,"a1 : ") ? a1 puts(1,"s1 & a1 : ") ? s1 & a1 -- concatenation puts(1,"a1 & a2 : ") ? a1 & a2 -- concatenation --------------7BEF7D3CA60D557743DA846F--