def split_list(lis, splitter):
	"""applies splitting function splitter to list items,
	return two new lists, where the first contains
	all the entries where splitter returns true"""
	left = []
	right = []
	for i in lis:
		if splitter(i):
			left.append(i)
		else:
			right.append(i)
	return left, right