ordsets

ordsets

Module

ordsets

Module summary

Functions for manipulating sets as ordered lists.

Description

Sets are collections of elements with no duplicate elements. An ordset is a representation of a set, where an ordered list is used to store the elements of the set. An ordered list is more efficient than an unordered list.

This module provides the same interface as the sets(3) module but with a defined representation. One difference is that while sets considers two elements as different if they do not match (=:=), this module considers two elements as different if and only if they do not compare equal (==).

Data types

ordset(T) = [T]

As returned by 登录查看完整内容