*** No Loops Allowed ***

You will be given an array (a) and a limit value (limit). You must check that all values in the array are below or equal to the limit value. If they are, return true. Else, return false.

You can assume all values in the array are numbers.

Do not use loops. Do not modify input array.

Looking for more, loop-restrained fun? Check out the other kata in the series:

 https://www.codewars.com/kata/no-loops-2-you-only-need-one
 https://www.codewars.com/kata/no-loops-3-copy-within

Difficulty: EASY
Starter code: def small_enough(a, limit):
	

Solutions:
def small_enough(a, limit):
	return max(a) <= limit


def small_enough(a, limit):
	if max(a) <= limit:
		return True
	else:
		return False


def small_enough(a, limit):
	if a[0] > limit:
		return False
	if len(a) > 1:
		return small_enough(a[1:], limit)
	return True


def small_enough(lst, limit):
	return max(lst) <= limit


small_enough = lambda a, limit: max(a) <= limit


def small_enough(a, limit):
	try:
		if a[0] > limit:
			return False
		if a[1] > limit:
			return False
		if a[2] > limit:
			return False
		if a[3] > limit:
			return False
		if a[4] > limit:
			return False
		if a[5] > limit:
			return False
		if a[6] > limit:
			return False
		if a[7] > limit:
			return False
		if a[8] > limit:
			return False
		if a[9] > limit:
			return False
		if a[10] > limit:
			return False
		if a[11] > limit:
			return False
		if a[12] > limit:
			return False
		if a[13] > limit:
			return False
		if a[14] > limit:
			return False
		if a[15] > limit:
			return False
		if a[16] > limit:
			return False
		if a[17] > limit:
			return False
		if a[18] > limit:
			return False
		if a[19] > limit:
			return False
		if a[20] > limit:
			return False
		if a[21] > limit:
			return False
		if a[22] > limit:
			return False
		if a[23] > limit:
			return False
		if a[24] > limit:
			return False
		if a[25] > limit:
			return False
		if a[26] > limit:
			return False
		if a[27] > limit:
			return False
		if a[28] > limit:
			return False
		if a[29] > limit:
			return False
		if a[30] > limit:
			return False
		if a[31] > limit:
			return False
		if a[32] > limit:
			return False
		if a[33] > limit:
			return False
		if a[34] > limit:
			return False
		if a[35] > limit:
			return False
		if a[36] > limit:
			return False
		if a[37] > limit:
			return False
		if a[38] > limit:
			return False
		if a[39] > limit:
			return False
		if a[40] > limit:
			return False
		if a[41] > limit:
			return False
		if a[42] > limit:
			return False
		if a[43] > limit:
			return False
		if a[44] > limit:
			return False
	except:
		return True


small_enough = lambda a, x: False not in map(lambda i: i <= x, a)


def small_enough(a, limit):
	return all(map(lambda x: x <= limit, a))


from functools import reduce

def small_enough(A, l):
	return reduce(lambda a, b: a and b, map(lambda a: a <= l, A))


def small_enough(a, limit):
	return list(filter(lambda i: i <= limit, a)) == a