inconsistent 'unique' in Atom

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

inconsistent 'unique' in Atom

missperovaz

Hi folks,

I've noticed that in v5 the expression


unique([122 122.5 10 10.3]) 


gives as result the following vector:

122 123 10 10.3


Any device? Is there any maximum number of characters displayed in the console, or something similar?

thanks,

Reply | Threaded
Open this post in threaded view
|

Re: inconsistent 'unique' in Atom

Yichao Yu
On Sun, Oct 30, 2016 at 10:05 PM,  <[hidden email]> wrote:

> Hi folks,
>
> I've noticed that in v5 the expression
>
>
> unique([122 122.5 10 10.3])
>
>
> gives as result the following vector:
>
> 122 123 10 10.3
>
>
> Any device? Is there any maximum number of characters displayed in the
> console, or something similar?

I'm not sure how Atom display works but maybe you can try
`dump(unique([122 122.5 10 10.3]))`. Also what if you just print `[122
122.5 10 10.3]` since the unique is supposed to be no op here?

>
> thanks,
Reply | Threaded
Open this post in threaded view
|

Re: inconsistent 'unique' in Atom

missperovaz
Hi Yichao,

thanks a lot, 
it does display it correctly if I use dump, but it's annoying that Atom is inconsistent while displaying the results

thanks a lot,

On Sunday, October 30, 2016 at 7:14:07 PM UTC-7, Yichao Yu wrote:
On Sun, Oct 30, 2016 at 10:05 PM,  <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="x6yASmsgAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">missp...@...> wrote:

> Hi folks,
>
> I've noticed that in v5 the expression
>
>
> unique([122 122.5 10 10.3])
>
>
> gives as result the following vector:
>
> 122 123 10 10.3
>
>
> Any device? Is there any maximum number of characters displayed in the
> console, or something similar?

I'm not sure how Atom display works but maybe you can try
`dump(unique([122 122.5 10 10.3]))`. Also what if you just print `[122
122.5 10 10.3]` since the unique is supposed to be no op here?

>
> thanks,
Reply | Threaded
Open this post in threaded view
|

Re: inconsistent 'unique' in Atom

Yichao Yu
On Sun, Oct 30, 2016 at 10:28 PM,  <[hidden email]> wrote:
> Hi Yichao,
>
> thanks a lot,
> it does display it correctly if I use dump, but it's annoying that Atom is
> inconsistent while displaying the results

In that case that sounds like an Atom bug so maybe report it to the
Atom plugin instead. (I believe they have their own more specific
forum). There should be enough Atom users here to verify your issue
too if it's not urgent.

>
> thanks a lot,
>
> On Sunday, October 30, 2016 at 7:14:07 PM UTC-7, Yichao Yu wrote:
>>
>> On Sun, Oct 30, 2016 at 10:05 PM,  <[hidden email]> wrote:
>> > Hi folks,
>> >
>> > I've noticed that in v5 the expression
>> >
>> >
>> > unique([122 122.5 10 10.3])
>> >
>> >
>> > gives as result the following vector:
>> >
>> > 122 123 10 10.3
>> >
>> >
>> > Any device? Is there any maximum number of characters displayed in the
>> > console, or something similar?
>>
>> I'm not sure how Atom display works but maybe you can try
>> `dump(unique([122 122.5 10 10.3]))`. Also what if you just print `[122
>> 122.5 10 10.3]` since the unique is supposed to be no op here?
>>
>> >
>> > thanks,
Reply | Threaded
Open this post in threaded view
|

Re: inconsistent 'unique' in Atom

Chris Rackauckas
In reply to this post by missperovaz
Just click on the number and it will expand it.

On Sunday, October 30, 2016 at 7:28:47 PM UTC-7, [hidden email] wrote:
Hi Yichao,

thanks a lot, 
it does display it correctly if I use dump, but it's annoying that Atom is inconsistent while displaying the results

thanks a lot,

On Sunday, October 30, 2016 at 7:14:07 PM UTC-7, Yichao Yu wrote:
On Sun, Oct 30, 2016 at 10:05 PM,  <[hidden email]> wrote:

> Hi folks,
>
> I've noticed that in v5 the expression
>
>
> unique([122 122.5 10 10.3])
>
>
> gives as result the following vector:
>
> 122 123 10 10.3
>
>
> Any device? Is there any maximum number of characters displayed in the
> console, or something similar?

I'm not sure how Atom display works but maybe you can try
`dump(unique([122 122.5 10 10.3]))`. Also what if you just print `[122
122.5 10 10.3]` since the unique is supposed to be no op here?

>
> thanks,
Reply | Threaded
Open this post in threaded view
|

Re: inconsistent 'unique' in Atom

missperovaz

Thanks guys, it is misleading tho and not ergonomic. Thanks


On Nov 1, 2016 1:25 AM, "Chris Rackauckas" <[hidden email]> wrote:
Just click on the number and it will expand it.

On Sunday, October 30, 2016 at 7:28:47 PM UTC-7, [hidden email] wrote:
Hi Yichao,

thanks a lot, 
it does display it correctly if I use dump, but it's annoying that Atom is inconsistent while displaying the results

thanks a lot,

On Sunday, October 30, 2016 at 7:14:07 PM UTC-7, Yichao Yu wrote:
On Sun, Oct 30, 2016 at 10:05 PM,  <[hidden email]> wrote:

> Hi folks,
>
> I've noticed that in v5 the expression
>
>
> unique([122 122.5 10 10.3])
>
>
> gives as result the following vector:
>
> 122 123 10 10.3
>
>
> Any device? Is there any maximum number of characters displayed in the
> console, or something similar?

I'm not sure how Atom display works but maybe you can try
`dump(unique([122 122.5 10 10.3]))`. Also what if you just print `[122
122.5 10 10.3]` since the unique is supposed to be no op here?

>
> thanks,