I am trying to use a recursive function to go through each element in a List[Char], to check the number of occurrences of an element. I know there are easier ways and possibly even functions to do this, but would there be any way to delete just the first position of a List?
i tried using drop, and even used the following snipping but it did nothing, where test is the name of the list:
def delete(i: Int) = test.take(i) ++ test.drop((i+1));
I am trying to avoid using ListBuffer, and tried converting to Array but again to no success.