This document uses Javascript but this language is not enabled in your browser. You need to enable JavaScript in the Preferences menu of you browser.
-------- TEST these functions str_nbOfChar__withTraces("abcd") str_copy__withTraces("abcde") str_copy__withSignatureChecking("abcde") str_nbOfLL__withReduce("ALLLELL") str_nbOfDistinctLL__withReduce_v2("LLLELL") str_nbOfLLLbeginningAtOddIndex__withLoop("ALLLLE") str_copyOfLLbeginningAtOddIndex__withMap("ALLLELL") str_convertAll__withLoop("ALE") str_convertSome__withLoop("ALELLE","L","X") str_indexOf_1char__withLoop("ALLELLE","L",3) str_indexOf__withLoop("ALLELLE","LLE",2) str_lastIndexOf_1char__withLoop("ALLELLE","L",2) Array_nbElements__withReduce(["ab", "b", "c"]) Array_copy__withReduce(["a", "b", "c"]) Array_nbOfLL__withLoop(["a", "b", "c"]) Array_nbOfLL__withLoop(["LL", "LLL", "ll"]) Array_copyOfLL__withReduce(["LL", "LLL", "LL"]) Array_sum__withReduce([0,1,2,3,4]) //-> 10 -------- WRITE these functions str_nbOfLLL__withLoop("ALLLELL") str_nbOfLLL__withReduce("ALLLELL") str_nbOfDistinctLL__withLoop("LLLELL") str_nbOfLLLbeginningAtOddIndex__withReduce("ALLLLE") str_nbOfDistinctLLLbeginningAtOddIndex__withLoop("ALLLLELL") str_nbOfDistinctLLLbeginningAtOddIndex__withReduce("ALLLLELLL") str_copyOfLLbeginningAtOddIndex__withLoop("ALLLELL") //->"LLLL" str_copyOfLLbeginningAtOddIndex__withReduce("ALLLELL") str_convertAll__withReduce("ALE") //should return "BMF" str_convertSome__withReduce("ALELLE","L","X") //-> "AXEXXE" str_indexOf_1char__withReduce("ALLELLE","L",3) //-> 4 str_indexOf__withReduce("ALLELLE","LLE",2) //should return 4 str_lastIndexOf_1char__withReduce("ALLELLE","L",2) //-> 4 str_lastIndexOf__withLoop("ALLELLE","LLE",2) //should return 1 str_lastIndexOf__withReduce("ALLELLE","LLE",2) //should return 1 Array_nbOfLL__withReduce(["a", "b", "c"]) Array_nbOfLL__withReduce(["LL", "LLL", "ll"]) Array_copyOfLL__withLoop(["LL", "LLL", "LL"]) //-> LL,LL Array_average__withReduce([2,3,4]) //-> 3