Join list and separate by sep, each elements is decorate by 'decorator'

@param list
@param decoration
@return
548990
String stringJoinAndDecorate(final List<String> list, final String sep, StringDecorator decorator) {
		if (decorator == null) {
			decorator = new NothingDecorator();
		}
		StringBuilder sb = new StringBuilder();
		if (list != null) {
			boolean first = true;
			for (String argument : list) {
				if (!first) {
					sb.append(sep);
				}
				sb.append(decorator.decorate(argument));
				first = false;
			}
		}
		return sb.toString();
	}
448196
public String join(String separator, final String keyValueSeparator) {
		return MapUtil.join(this.map, separator, keyValueSeparator);
	}
511423
public static String join (Iterable<?> items, String sep)
    {
        Iterator<?> i = items.iterator();
        if (!i.hasNext()) {
            return "";
        }
        StringBuilder buf = new StringBuilder(String.valueOf(i.next()));
        while (i.hasNext()) {
            buf.append(sep).append(i.next());
        }
        return buf.toString();
    }
285387
public static String join(String separator, Object... values) {
		return join(Arrays.asList(values), separator);
	}
264420
public static String join(final Collection<?> collection, final String separator) {
        StringBuffer buffer = new StringBuffer();
        boolean first = true;
        Iterator<?> iter = collection.iterator();
        while (iter.hasNext()) {
            Object next = iter.next();
            if (first) {
                first = false;
            } else {
                buffer.append(separator);
            }
            buffer.append(next);
        }
        return buffer.toString();
    }
1093768
def separate_list(spc_sep_vals, &block)
      spc_sep_vals.split(' ').any? do |sub_val|
        result = block.call sub_val
        !result
      end
    end
677009
public static <T> List<List<T>> divideAsList(List<T> coll) {
		List<List<T>> result = new ArrayList<>();
		for (T t : coll) {
			List<T> list = new ArrayList<>();
			list.add(t);
			result.add(list);
		}
		return result;
	}
118402
public static String join(String[] strings, String sep) {
        return join(Arrays.asList(strings), sep);
    }
817298
public static final <S, E> Functional<S> functionalList(List<E> list) {
		return new FunctionalList<S, E>(list); 
	}
665908
public static <T> Chain<T> chain(final List<T> list) {
        return new U.Chain<T>(list);
    }
162562
public static <T> String listToString(List<T> list, final boolean justValue,
                                        final String separator) {
    StringBuilder s = new StringBuilder();
    for (Iterator<T> wordIterator = list.iterator(); wordIterator.hasNext();) {
      T o = wordIterator.next();
      s.append(wordToString(o, justValue, separator));
      if (wordIterator.hasNext()) {
        s.append(' ');
      }
    }
    return s.toString();
  }
651879
public static <T> List<List<T>> split(final List<T> list, final int count) {
    List<List<T>> subIdLists = CollectUtils.newArrayList();
    if (list.size() < count) {
      subIdLists.add(list);
    } else {
      int i = 0;
      while (i < list.size()) {
        int end = i + count;
        if (end > list.size()) {
          end = list.size();
        }
        subIdLists.add(list.subList(i, end));
        i += count;
      }
    }
    return subIdLists;
  }
293546
public static String join(final String sep, final Iterable<?> iterable) {
        final StringBuilder buf = new StringBuilder();
        join(buf, "", sep, "", iterable);
        return buf.toString();
    }
936228
function decorate(list, method, prop) {
  utils.define(list.items, method, function() {
    var res = list[method].apply(list, arguments);
    return prop ? res[prop] : res;
  });
}
931014
def _join(lst, key, sep=";"):
    
    return sep.join([d[key] for d in lst if d[key]])
517343
public static MutableList<String> trimmedTokensToList(String string, String separator)
    {
        return StringIterate.trimStringList(StringIterate.tokensToList(string, separator));
    }
1355163
public List<Decorators<Beans<T>>> getAllDecorators()
   {
      List<Decorators<Beans<T>>> list = new ArrayList<Decorators<Beans<T>>>();
      List<Node> nodeList = childNode.get("decorators");
      for(Node node: nodeList)
      {
         Decorators<Beans<T>>  type = new DecoratorsImpl<Beans<T>>(this, "decorators", childNode, node);
         list.add(type);
      }
      return list;
   }