ElementsIntoSet
@Target(allowedTargets = [AnnotationTarget.FUNCTION, AnnotationTarget.FIELD, AnnotationTarget.PROPERTY, AnnotationTarget.PROPERTY_GETTER] )
The callable's return type is a Collection<T>
and all values are contributed to the set. The Collection<T>
produced from the accumulation of values will be immutable.