Functionality: This function takes a slice of integers and a mapping function, applies the mapping function to each integer, and returns a new slice of float32 values.
Example: Given an input slice of [1, 2, 4, 8] and a mapping function that multiplies each integer by 1.1, the function should return [1.1, 2.2, 4.4, 8.8].
Functionality: This function takes a slice of integers and a filtering condition function, applies the condition to each integer, and returns a new slice containing only the integers that satisfy the condition.
Example: Given an input slice of [1, 2, 3, 4, 5, 6] and a condition that checks if integers are even, the function should return [2, 4, 6].
Edge Case: Ensure that if the input slice is empty, the Filter function should return an empty slice as well.
Implementation Location:
Place the implementation of both functions in the /app/ directory, specifically in a file named array.go.
Ensure that the functions are tested and correctly handle the provided examples in the test code.
Important: declare your solution in package array (the test file uses package array, so the implementation must use the matching package name).