def first_and_last(l: list) -> list:
	"""Return first and last elements takes list.
	::param l: list of integers
	::type l: list
	::rtype: list of integers
	"""
	return l[0::len(l) - 1 if len(l) > 1 else None]