// Valid tells whether the sequences in the alignment have the same length.
Valid tells whether the sequences in the alignment have the same length.
// Valid tells whether the sequences in the alignment have the same length .
func (a Alignment) Valid() bool {
	if len(a) == 0 {
		return true
	}
	length := len(a[0].Sequence())
	for _, s := range a {
		if length != len(s.Sequence()) {
			return false
		}
	}
	return true
}
func ( a Alignment ) Valid ( ) bool { if len ( a ) == 0 { return true } length := len ( a [ 0 ] . Sequence ( ) ) for _ , s := range a { if length != len ( s . Sequence ( ) ) { return false } } return true }
Valid tells whether the sequences in the alignment have the same length.
Valid tells whether the sequences in the alignment have the same length .