
def pipe(input, *funcs):
	for f in funcs:
		input = f(input)
	return input


def last(mylist):
	return mylist[len(mylist) - 1]

def any(mylist, matcher):
	for i in mylist:
		if matcher(i):
			return True
	return False

def one_where(mylist, matcher):
	for i in mylist:
		if matcher(i):
			return i
	return None