set to array
Date: Fri, 30 Jul 2004 14:33:07 -0400
Numeric.array(myset) returns an array with
one element, which is the set.
i. Even allowing that sets are not sequence types,
is this not surprising?
ii. What is the best way to produce an array of
the set elements?
Thanks,
Alan Isaac
Relevant Pages
- Re: Array.Clear vs List<>.Clear
... that creating a great big value array was still faster. ... That in mind, your results aren't all that surprising to me, as it's ... internal framework function. ... just eventually call some sort of memset variant (which is really ... (microsoft.public.dotnet.languages.csharp) - Re: Getting the right class with inheritance and super()
... If you use inheritance you must make sure that your ... class's invariant is not broken. ... FixesSizedArray is far from usable in every place where an Array is ... or is it least surprising to let the 100 line window ... (comp.lang.ruby) - Re: Quiz #65, Principle of Great Surprise, and Array.delete sledgehammer
... three times as much time trying to get Ruby to stop surprising me as I have trying to implement my algorithm, and I've had to abandon my effort since I don't have the time to spend. ... Can somebody explain to me how I'm supposed to delete a *single* element from an array based on equivalence with an object? ... and also surprised me by not handling 'nil' as I wanted... ... Why isn't that the Ruby Way? ... (comp.lang.ruby) - Quiz #65, Principle of Great Surprise, and Array.delete sledgehammer
... I thought I was actually going to enter my first RubyQuiz, but I've spent three times as much time trying to get Ruby to stop surprising me as I have trying to implement my algorithm, and I've had to abandon my effort since I don't have the time to spend. ... Can somebody explain to me how I'm supposed to delete a *single* element from an array based on equivalence with an object? ... and also surprised me by not handling 'nil' as I wanted... ... (comp.lang.ruby) - Re: Quiz #65, Principle of Great Surprise, and Array.delete sledgehammer
... spent three times as much time trying to get Ruby to stop surprising me as I have trying to implement my algorithm, and I've had to abandon my effort since I don't have the time to spend. ... Can somebody explain to me how I'm supposed to delete a *single* element from an array based on equivalence with an object? ... and also surprised me by not handling 'nil' as I wanted... ... Why isn't that the Ruby Way? ... (comp.lang.ruby) |
|