1. How can we copy an integer's value to a sequence?
------=_NextPart_000_002C_01BFCA52.6192C180
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
How can we copy an integer's value to a sequence?
------=_NextPart_000_002C_01BFCA52.6192C180
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana,Arial size=3D2>How can we copy an integer's =
value to a=20
------=_NextPart_000_002C_01BFCA52.6192C180--
2. Re: How can we copy an integer's value to a sequence?
------=_NextPart_000_0008_01BFCA21.313435E0
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
What exactly do you mean?
Adam Weeden
----- Original Message -----=20
From: bill gates=20
To: EUPHORIA at LISTSERV.MUOHIO.EDU=20
Sent: Tuesday, May 30, 2000 9:16 AM
Subject: How can we copy an integer's value to a sequence?
How can we copy an integer's value to a sequence?
------=_NextPart_000_0008_01BFCA21.313435E0
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3017.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>What exactly do you mean?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Adam Weeden</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A href=3D"mailto:sun.rise at MAIL.EE" title=3Dsun.rise at MAIL.EE>bill =
gates</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
href=3D"mailto:EUPHORIA at LISTSERV.MUOHIO.EDU"=20
title=3DEUPHORIA at LISTSERV.MUOHIO.EDU>EUPHORIA at LISTSERV.MUOHIO.EDU</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, May 30, 2000 =
9:16 AM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> How can we copy an =
integer's=20
value to a sequence?</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DVerdana,Arial size=3D2>How can we copy an integer's =
value to a=20
------=_NextPart_000_0008_01BFCA21.313435E0--
3. Re: How can we copy an integer's value to a sequence?
- Posted by Allen Soard <esp-software at MAIL.HYPERMART.NET>
May 27, 2000
-
Last edited May 28, 2000
> THIS IS A MESSAGE IN 'MIME' FORMAT. Your mail reader does not support MIME.
> Please read the first section, which is plain text, and ignore the rest.
--Interpart.Boundary.11.22.33.M2Y2508
There's a few ways to do it depending on your
application.:
integer i
sequence s
i=10
s={i}
s=prepend(s,i)
s=append(s,i)
s[2]=i
That's all I can think of off the top of my head,
let me know if it helps.
E.Allen Soard
Bookmark the HyperMart Small Business Center. All the tools you need to
succeed!
http://www.hypermart.net/center/
--Interpart.Boundary.11.22.33.M2Y2508
Content-Disposition: attachment; filename="OriginalBody.htm"
4. Re: How can we copy an integer's value to a sequence?
On Tue, 30 May 2000 16:16:16 +0300, bill gates <sun.rise at MAIL.EE> wrote:
>How can we copy an integer's value to a sequence?
>
I think this is what you mean
integer var
sequence s
var = 5
If the sequence is not already initialize then you have to do this
s = {var}
that will intialize the sequence of a length 1 with the integer
if you try to assign s = var then you are trying to assign a atom
to a sequence (which will cause an error ) and not inserting it into
the sequence.
Bernie
5. Re: How can we copy an integer's value to a sequence?
Hello Bill,
>How can we copy an integer's value to a sequence?
Bernies reply to this question was perfectly correct, but just
in case you wanted to know how to copy an integer as specific
element of a sequence here's how
integer i
sequence s
i = 5
s = {1,2,3}
s [2] = i -- [2] being the element number
? s -- s is now: {1,5,3}
hope this helps,
Lewis Townsend
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
6. Re: How can we copy an integer's value to a sequence?
bill gates wrote:
>
> Part 1.1 Type: Plain Text (text/plain)
> Encoding: quoted-printable
--
First: could you try to switch your mail sender to send 'plain text'? As
you see, it avoids that I have to open en extra browser window to read
it.
--
Second, your question:
-----------------
sequence s, atom a
s = {5} -- now s(1) contains 5
a = 5
s = {a} -- ditto
-----------------
or:
s = repeat(0,10) -- sequence of length 10 filled with zeros
s[1] = a --
s[2] = 3 -- and so on.
-----------------
Have a nice day, Rolf