def joinObjects(separator, selector, items):
	"""Joins a string of objects by calling the selector with each item and putting the separator in between each item.
	Arguments:
		separator : str - string to put between each item
		selector : callable(item) - function with one parameter
		items : list - the objects to join
	Returns:
		str
	Examples:
		>>> joinitems(', ', lambda x: x + 1, [0, 5, 2])
		'1, 6, 3'
	"""
	if type(separator) != str:
		raise TypeError('type(separator) should be str.')
	if type(items) != list:
		raise TypeError('type(items) should be list.')

	retval = ''
	if len(items) > 0:
		last = items.pop()
		for item in items:
			retval += str(selector(item)) + separator
		#
		retval += str(selector(last))
	return retval