Write a function called `FoldInt` that simulates the behavior of reduce from JavaScript.
The function should have as parameters a function, `f func(int, int) int` a slice of integers, `slice []int` and an int `acc int`. You should apply for each element of the slice the arithmetic function, saving and printing it. The function will be tested with our own functions `Add, Sub, and Mul`.
Write a function called `reduceint` that simulates the behaviour of reduce from JavaScript.
The function should have as parameters a slice of integers, `a []int` and a function `f func(int, int) int`. You should apply for each element of the slice the arithmetic function, saving it and printing.
Write a **function** that replicates the JavaScript function `slice`.
The function receives a slice of strings and one or more integers, and returns a slice of strings. The returned slice is part of the received one but cut from the position indicated in the first int, until the position indicated by the second int.
In case there only exists one int, the resulting slice begins in the position indicated by the int and ends at the end of the received slice.