How can I implement set operations in VB.NET. For example,
{1,2,3,4} union {3,4,5,6} = {1,2,3,4,5,6}
{1,2,3,4} minus {0,3} = {1,2,4}
{1,2,3,4,5,6,7} intersect {0,2,7} = {2,7}
Bill 1 4533
VB.Net doesn't support this natively, but you can build your own classes to
do it. Here's one implementation:
Add Support for "Set" Collections to .NET http://www.codeproject.com/csharp/Sets.asp
"bill salkin" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl... How can I implement set operations in VB.NET. For example,
{1,2,3,4} union {3,4,5,6} = {1,2,3,4,5,6}
{1,2,3,4} minus {0,3} = {1,2,4}
{1,2,3,4,5,6,7} intersect {0,2,7} = {2,7}
Bill This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Phil Powell |
last post by:
print_r("From index.php 20: $prefix: stateXML = $stateXML<P>");
foreach (array('state', 'country') as $prefix) {
print_r("From index.php 21: stateXML = $stateXML<P>");
${$prefix . 'XML'} =...
|
by: Anthony Liu |
last post by:
I want to use the set function like
mylist =
myset = set (mylist)
But I don't know what to import, I tried sys, sets,
they don't work.
What's the easy way to find out the module that...
|
by: Skip Montanaro |
last post by:
I use sets a lot in my Python 2.3 code at work and have been using this
hideous import to make the future move to 2.4's set type transparent:
try:
x = set
except NameError:
from sets import...
|
by: Me |
last post by:
Hi, I would like learn from people with experience in C++, which of the
following styles of way to construct "get/set" member functions would be the
best in terms of usability, speed, et cetera.
...
|
by: William Payne |
last post by:
Hello, I have a variable of type unsigned long. It has a number of bits set
(with set I mean they equal one). I need to determine those bits and their
position and create new numbers from them. For...
|
by: Mart |
last post by:
What class does everyone out there use if they want to store a set of values
efficiently?
In java I use a HashSet, but there is no equivalent in C#.
Even worse, the lowest level interface to...
|
by: Anders Borum |
last post by:
Hello!
I was looking at marking objects with a changed state, once properties have
been changed. The reason behind this is, that I would like to enlist such
objects for processing in a...
|
by: Gregor Horvath |
last post by:
Hi,
I searched the web and docs but cannot figure out whats wrong with this
code:
#!/usr/bin/python
import Tkinter as Tk
class testtk(Tk.Frame):
|
by: slrj |
last post by:
Can I use a local struct to store data in the "set" conatiner? If so, what is the correct method to do so?
Compiler: Sun Studio 10 on Unix (Sun Solaris)
#include<iostream>
#include<set>
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |