Package: gtk

Function gtk:bitset-nth

Lambda List

gtk:bitset-nth (bitset nth)

Arguments

bitset -- a gtk:bitset instance
nth -- an unsigned integer for the index of the item to get

Return Value

The unsigned integer for the value of the nth item in bitset.

Details

Returns the value of the nth item in the bitset. If nth is greater than or equal the size of the bitset, 0 is returned.

Examples

(defvar bitset (gtk:bitset-new-range 100 50)) => BITSET
(gtk:bitset-size bitset) => 50
(gtk:bitset-nth bitset 0) => 100
(gtk:bitset-nth bitset 49) => 149    
 

See also

2025-3-13