Пример #1
0
 default Snippets cat(final Iterable<Snippet> ss) {
   final Snippets $ = make();
   for (final Snippet s1 : this) for (final Snippet s2 : ss) $.add(s1.toString() + s2.toString());
   return $;
 }
Пример #2
0
 default Snippets cut(final Collection<Snippet> ss) {
   final Snippets $ = make(this);
   $.removeAll(ss);
   return $;
 }
Пример #3
0
 default Snippets cap(final Collection<Snippet> ss) {
   final Snippets $ = make(this);
   $.addAll(ss);
   return $;
 }