Consider the following fruit filter function. It returns only the fruits whose character length is less than or equal to 6. Suppose we want to reuse this filter function for other arrays, we need to call filter(withLessThanSixChars, inputArray)
again and again.
Let's create a function that filters the input array based on the withLessThanSixChars
condition. Remember to curry the input array.