BSD Ports

devel/rubygem-set 1.1.1 DragonFly

Class to deal with collections of unordered, unique values

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE, RUBY
Categories
devel, rubygems
Package size
12.0 KiB, 39.6 KiB installed

Description

This library provides the Set class, which deals with a collection of unordered values with no duplicates. It is a hybrid of Array's intuitive inter-operation facilities and Hash's fast lookup.

The method to_set is added to Enumerable for convenience.

Set implements a collection of unordered values with no duplicates. This is a hybrid of Array's intuitive inter-operation facilities and Hash's fast lookup.

Set is easy to use with Enumerable objects (implementing each). Most of the initializer methods and binary operators accept generic Enumerable objects besides sets and arrays. An Enumerable object can be converted to Set using the to_set method.

In the other systems

SystemPortVersion
DragonFlydevel/rubygem-set1.1.1
FreeBSDdevel/rubygem-set1.1.3

Install

Binary package:

pkg install rubygem-set

From DPorts:

cd /usr/dports/devel/rubygem-set && make install clean

Dependencies

Run dependencies 2
Required by 1