package clipper

import 

type MultiErr []error

func ( MultiErr) () string {
	 := &bytes.Buffer{}
	for ,  := range  {
		.WriteString(.Error())
		.WriteByte(';')
	}
	return .String()
}

// GetClipboard iterates through the given clipboards and returns the first one that works.
func ( ...Clipboard) ( Clipboard,  error) {
	var  MultiErr

	for ,  := range  {
		if  = .Init();  == nil {
			return , nil
		}
		 = append(, )
	}
	return nil, 
}