<commit_before>def f(arr:List[Int]):List[Int] = {
    var reversedList: List[Int] = List.fill(arr.length)(0)
    arr.zipWithIndex
       .map { case (element, index) => 
           reversedList = reversedList.updated(arr.length - index - 1, element)
       }
    return reversedList
}<commit_msg>New impl for last fp ex :rocket:<commit_after>def f(arr:List[Int]):List[Int] = arr.foldLeft(List[Int]()) { 
    (reversedList, element) => element :: reversedList 
};

/*
def f(arr:List[Int]):List[Int] = {
    var reversedList: List[Int] = List.fill(arr.length)(0)
    arr.zipWithIndex
       .map { case (element, index) => 
           reversedList = reversedList.updated(arr.length - index - 1, element)
       }
    return reversedList
}
*/
{'fraction_non_alphanumeric': 0.15426251691474965, 'fraction_numerical': 0.005412719891745603, 'mean_word_length': 3.1807909604519775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4427143', 'n_tokens_mistral': 262, 'n_tokens_neox': 244, 'n_words': 49}