Top "Set" questions

A set is a collection in which no element is repeated, which may be able to enumerate its elements according to an ordering criterion (an "ordered set") or retain no order (an "unordered set").

MySQL local variables

I am trying to define and initialize a MySQL variable for a query. I have the following: declare @countTotal int; …

mysql variables set local declare
Union or intersection of Java Sets

What is the simplest way to make a union or an intersection of Sets in Java? I've seen some strange …

java collections set set-intersection set-union
Elegant way to remove items from sequence in Python?

When I am writing code in Python, I often need to remove items from a list or other sequence type …

python optimization set series
Django how to set main page

i want to set a main page or an index page for my app. i tried adding MAIN_PAGE in …

django indexing set main
How to clone or copy a set in Python?

For copying a list: shallow_copy_of_list = old_list[:]. For copying a dict: shallow_copy_of_dict = dict(old_…

python set clone shallow-copy
TTL for a set member

Is it possible in Redis to set TTL (time to live) not for a specific key, but for a member …

redis set tagging ttl
Shorthand Accessors and Mutators

I am learning C#, and am learning about making fields private to the class, and using Getters and Setters to …

c# get set encapsulation shorthand
How do I use unordered_set?

I am trying to define an unordered_set like this: unordered_set<Point> m_Points; When I compile …

c++ stl set unordered-set
Empty/delete a set in Redis?

Maybe I'm just blind, but I don't see an explicit set command in Redis for emptying an existing set (without …

set redis
List vs Queue vs Set of collections in Java

what is the difference among list, queue and set?

java list collections queue set