you could potentially store lines as a map[string]X to get set-like behavior. Might be confusing/not worth saving the LOC of detecting duplicates.