That doesn't result in what he asked it to result in. I am not
convinced what I came up with was what he was really after either. I
think Siep was on to something.
···
On Tue, Sep 16, 2008 at 11:12:50PM +0900, Amos King wrote:
Add the two arrays and call uniq on the new array
([1, 2, 3] + [1, 4, 7]).uniq
--
nathan
nathan_at_nathanpowell_dot_org
What kind of crazy nut would spend two or three hours a day just running?
~ Steve Prefontaine
------------------------------------
On Tue, Sep 16, 2008 at 9:18 AM, Nathan Powell <nathan@nathanpowell.org> wrote:
On Tue, Sep 16, 2008 at 11:12:50PM +0900, Amos King wrote:
Add the two arrays and call uniq on the new array
([1, 2, 3] + [1, 4, 7]).uniq
=> [1, 2, 3, 4, 7]
That doesn't result in what he asked it to result in. I am not
convinced what I came up with was what he was really after either. I
think Siep was on to something.
--
nathan
nathan_at_nathanpowell_dot_org
What kind of crazy nut would spend two or three hours a day just running?
~ Steve Prefontaine
------------------------------------
On Tue, Sep 16, 2008 at 9:29 AM, Amos King <amos.l.king@gmail.com> wrote:
We'll see.
On Tue, Sep 16, 2008 at 9:18 AM, Nathan Powell <nathan@nathanpowell.org> wrote:
On Tue, Sep 16, 2008 at 11:12:50PM +0900, Amos King wrote:
Add the two arrays and call uniq on the new array
([1, 2, 3] + [1, 4, 7]).uniq
=> [1, 2, 3, 4, 7]
That doesn't result in what he asked it to result in. I am not
convinced what I came up with was what he was really after either. I
think Siep was on to something.
--
nathan
nathan_at_nathanpowell_dot_org
What kind of crazy nut would spend two or three hours a day just running?
~ Steve Prefontaine
------------------------------------
<snip>
For example, array1=[1,2,3],array2=[1,4,7]
the return array is [2,3,4,7]
</snip>
It's not entirely clear as one could arrive at that final array a couple
ways.
···
On Tue, Sep 16, 2008 at 11:25:00PM +0900, Amos King wrote:
Forgot to ask what he was looking for.
--
nathan
nathan_at_nathanpowell_dot_org
At this point, anyone proposing to run Windows on servers should be prepared
to explain what they know about servers that Google, Yahoo, and Amazon don't.
~ Paul Graham
------------------------------------
...assumes the elements to be compared are all the same type (Fixnums
can't sort with Strings, eg)
···
On Tue, Sep 16, 2008 at 9:29 AM, Nathan Powell <nathan@nathanpowell.org> wrote:
On Tue, Sep 16, 2008 at 11:25:00PM +0900, Amos King wrote:
Forgot to ask what he was looking for.
In the original email:
<snip>
For example, array1=[1,2,3],array2=[1,4,7]
the return array is [2,3,4,7]
</snip>
It's not entirely clear as one could arrive at that final array a couple
ways.
--
nathan
nathan_at_nathanpowell_dot_org
At this point, anyone proposing to run Windows on servers should be prepared
to explain what they know about servers that Google, Yahoo, and Amazon don't.
~ Paul Graham
------------------------------------
--
todb@planb-security.net | ICQ: 335082155 | Note: Due to Google's
privacy policy <http://tinyurl.com/5xbtl> and the United States'
policy on electronic surveillance <http://tinyurl.com/muuyl>,
please do not IM/e-mail me anything you wish to remain secret.
...assumes the elements to be compared are all the same type (Fixnums
can't sort with Strings, eg)
On Tue, Sep 16, 2008 at 9:29 AM, Nathan Powell <nathan@nathanpowell.org> wrote:
On Tue, Sep 16, 2008 at 11:25:00PM +0900, Amos King wrote:
Forgot to ask what he was looking for.
In the original email:
<snip>
For example, array1=[1,2,3],array2=[1,4,7]
the return array is [2,3,4,7]
</snip>
It's not entirely clear as one could arrive at that final array a couple
ways.
--
nathan
nathan_at_nathanpowell_dot_org
At this point, anyone proposing to run Windows on servers should be prepared
to explain what they know about servers that Google, Yahoo, and Amazon don't.
~ Paul Graham
------------------------------------
--
todb@planb-security.net | ICQ: 335082155 | Note: Due to Google's
privacy policy <http://tinyurl.com/5xbtl> and the United States'
policy on electronic surveillance <http://tinyurl.com/muuyl>,
please do not IM/e-mail me anything you wish to remain secret.