package
Version:
v0.0.0-...-50176c9
Opens a new window with list of versions in this module.
Published: Jan 12, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type IllegalArgumentError struct {
ErrorMessage string
}
func NewSet(size int, values ...interface{}) *Set
func (s *Set) Add(val interface{}) bool
add a value into set,
if this set already has the value it will return false,
else return true
func (s *Set) Contains(val interface{}) bool
return true if this set contains the value,
otherwise will return false
values len is 0 will return true
otherwise will return false
func (s *Set) Remove(val interface{}) bool
if contains the value then delete the value and return ture
otherwise will return false
func (s *Set) Values() []interface{}
get values from the set
func (s *Stack) Elements() []interface{}
judge the stack if has elements
return true if has no elements, otherwise return true
pop a value from stack,
if has value to pop, bool will is true, otherwise is false
Source Files
¶
Click to show internal directories.
Click to hide internal directories.