Home
The Toolkit for Online Communities
15900 Community Members, 1 member online, 2215 visitors today
Log In Register

set-operation-procs.tcl

OpenACS Home : ACS API Browser : ACS Tcl 5.5.1 : set-operation-procs.tcl
Publicity:
[Public Only | All]

set-operation-procs.tcl

Simple set-manipulation procedures.
Location:
packages/acs-tcl/tcl/set-operation-procs.tcl
Created:
19 January 2001
Author:
Eric Lorenzo <elorenzo@arsdigita.com>
CVS Identification:
$Id: set-operation-procs.tcl,v 1.3 2009/02/12 15:38:41 jeffd Exp $

Procedures in this file

Detailed information

set_append! (public)

set_append! s-name v

Adds the element v to the set named s-name in the calling environment, if it isn't already there.

Parameters:
s-name
v
 

set_difference (public)

set_difference u v

Returns the difference of sets $u and $v. (i.e. The set of all members of u that aren't also members of $v.)

Parameters:
u
v
 

set_difference! (public)

set_difference! u-name v

Computes the difference of the set stored in the variable named $u-name in the calling environment and the set v, sets the variable named $u-name in the calling environment to that difference, and also returns that difference.

Parameters:
u-name
v
 

set_intersection (public)

set_intersection u v

Returns the intersection of sets $u and $v.

Parameters:
u
v
 

set_intersection! (public)

set_intersection! u-name v

Computes the intersection of the set stored in the variable named $u-name in the calling environment and the set v, sets the variable named $u-name in the calling environment to that intersection, and also returns that intersection.

Parameters:
u-name
v
 

set_member? (public)

set_member? s v

Tests whether or not $v is a member of set $s.

Parameters:
s
v
 

set_union (public)

set_union u v

Returns the union of sets $u and $v.

Parameters:
u
v
 

set_union! (public)

set_union! u-name v

Computes the union of the set stored in the variable named $u-name in the calling environment and the set v, sets the variable named $u-name in the calling environment to that union, and also returns that union.

Parameters:
u-name
v