ToSubjectCollection - Converts new subject collection from given tuple collection
()
| 38 | |
| 39 | // ToSubjectCollection - Converts new subject collection from given tuple collection |
| 40 | func (t *TupleCollection) ToSubjectCollection() *SubjectCollection { |
| 41 | subjects := make([]*base.Subject, len(t.tuples)) |
| 42 | for index, tuple := range t.tuples { |
| 43 | subjects[index] = tuple.GetSubject() |
| 44 | } |
| 45 | return NewSubjectCollection(subjects...) |
| 46 | } |
| 47 | |
| 48 | // SUBJECT |
| 49 |