From 60d9bb33e225bb1cb716ada5f305282212d90019 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Sun, 4 Jun 2017 16:40:47 -0400 Subject: [PATCH] Kotlin - Accumulate solved --- .../.gradle/3.5/file-changes/last-build.bin | Bin 0 -> 1 bytes .../.gradle/3.5/taskHistory/taskHistory.lock | Bin 0 -> 17 bytes .../.gradle/buildOutputCleanup/built.bin | 0 .../buildOutputCleanup/cache.properties | 2 + .../buildOutputCleanup/cache.properties.lock | 1 + kotlin/accumulate/.idea/compiler.xml | 9 + kotlin/accumulate/.idea/gradle.xml | 19 + .../libraries/Gradle__junit_junit_4_12.xml | 11 + ...Gradle__org_hamcrest_hamcrest_core_1_3.xml | 11 + ...Gradle__org_jetbrains_annotations_13_0.xml | 11 + ...g_jetbrains_kotlin_kotlin_stdlib_1_1_1.xml | 11 + ...org_jetbrains_kotlin_kotlin_test_1_1_1.xml | 11 + ...tbrains_kotlin_kotlin_test_junit_1_1_1.xml | 11 + kotlin/accumulate/.idea/misc.xml | 6 + kotlin/accumulate/.idea/modules.xml | 10 + .../.idea/modules/accumulate_main.iml | 40 + .../.idea/modules/accumulate_test.iml | 46 + kotlin/accumulate/.idea/workspace.xml | 854 ++++++++++++++++++ kotlin/accumulate/accumulate.iml | 12 + .../build/classes/main/Accumulate.class | Bin 0 -> 1980 bytes ...lateTest$accumulateReversedStrings$1.class | Bin 0 -> 1767 bytes .../AccumulateTest$accumulateSquares$1.class | Bin 0 -> 1179 bytes ...lateTest$accumulateToDifferentType$1.class | Bin 0 -> 1281 bytes ...ccumulateTest$accumulateUpperCases$1.class | Bin 0 -> 1687 bytes ...eTest$accumulateWithinAccumulate$1$1.class | Bin 0 -> 1549 bytes ...ateTest$accumulateWithinAccumulate$1.class | Bin 0 -> 1991 bytes ...ccumulateProducesEmptyAccumulation$1.class | Bin 0 -> 1248 bytes .../build/classes/test/AccumulateTest.class | Bin 0 -> 3561 bytes .../build/kotlin-build/caches/version.txt | 1 + .../accumulate/src/main/kotlin/Accumulate.kt | 9 + .../src/test/kotlin/AccumulateTest.kt | 10 +- kotlin/word-count/.idea/workspace.xml | 6 +- 32 files changed, 1083 insertions(+), 8 deletions(-) create mode 100644 kotlin/accumulate/.gradle/3.5/file-changes/last-build.bin create mode 100644 kotlin/accumulate/.gradle/3.5/taskHistory/taskHistory.lock create mode 100644 kotlin/accumulate/.gradle/buildOutputCleanup/built.bin create mode 100644 kotlin/accumulate/.gradle/buildOutputCleanup/cache.properties create mode 100644 kotlin/accumulate/.gradle/buildOutputCleanup/cache.properties.lock create mode 100644 kotlin/accumulate/.idea/compiler.xml create mode 100644 kotlin/accumulate/.idea/gradle.xml create mode 100644 kotlin/accumulate/.idea/libraries/Gradle__junit_junit_4_12.xml create mode 100644 kotlin/accumulate/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml create mode 100644 kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml create mode 100644 kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_1_1.xml create mode 100644 kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_1_1_1.xml create mode 100644 kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_junit_1_1_1.xml create mode 100644 kotlin/accumulate/.idea/misc.xml create mode 100644 kotlin/accumulate/.idea/modules.xml create mode 100644 kotlin/accumulate/.idea/modules/accumulate_main.iml create mode 100644 kotlin/accumulate/.idea/modules/accumulate_test.iml create mode 100644 kotlin/accumulate/.idea/workspace.xml create mode 100644 kotlin/accumulate/accumulate.iml create mode 100644 kotlin/accumulate/build/classes/main/Accumulate.class create mode 100644 kotlin/accumulate/build/classes/test/AccumulateTest$accumulateReversedStrings$1.class create mode 100644 kotlin/accumulate/build/classes/test/AccumulateTest$accumulateSquares$1.class create mode 100644 kotlin/accumulate/build/classes/test/AccumulateTest$accumulateToDifferentType$1.class create mode 100644 kotlin/accumulate/build/classes/test/AccumulateTest$accumulateUpperCases$1.class create mode 100644 kotlin/accumulate/build/classes/test/AccumulateTest$accumulateWithinAccumulate$1$1.class create mode 100644 kotlin/accumulate/build/classes/test/AccumulateTest$accumulateWithinAccumulate$1.class create mode 100644 kotlin/accumulate/build/classes/test/AccumulateTest$emptyAccumulateProducesEmptyAccumulation$1.class create mode 100644 kotlin/accumulate/build/classes/test/AccumulateTest.class create mode 100644 kotlin/accumulate/build/kotlin-build/caches/version.txt create mode 100644 kotlin/accumulate/src/main/kotlin/Accumulate.kt diff --git a/kotlin/accumulate/.gradle/3.5/file-changes/last-build.bin b/kotlin/accumulate/.gradle/3.5/file-changes/last-build.bin new file mode 100644 index 0000000000000000000000000000000000000000..f76dd238ade08917e6712764a16a22005a50573d GIT binary patch literal 1 IcmZPo000310RR91 literal 0 HcmV?d00001 diff --git a/kotlin/accumulate/.gradle/3.5/taskHistory/taskHistory.lock b/kotlin/accumulate/.gradle/3.5/taskHistory/taskHistory.lock new file mode 100644 index 0000000000000000000000000000000000000000..40bfe703dfded4da2cf013151de63f851fb7bce1 GIT binary patch literal 17 TcmZRMJAJ0~n!yPZ1}FdkINk(s literal 0 HcmV?d00001 diff --git a/kotlin/accumulate/.gradle/buildOutputCleanup/built.bin b/kotlin/accumulate/.gradle/buildOutputCleanup/built.bin new file mode 100644 index 0000000..e69de29 diff --git a/kotlin/accumulate/.gradle/buildOutputCleanup/cache.properties b/kotlin/accumulate/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..34958ac --- /dev/null +++ b/kotlin/accumulate/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Sun Jun 04 16:28:56 EDT 2017 +gradle.version=3.5 diff --git a/kotlin/accumulate/.gradle/buildOutputCleanup/cache.properties.lock b/kotlin/accumulate/.gradle/buildOutputCleanup/cache.properties.lock new file mode 100644 index 0000000..40fdece --- /dev/null +++ b/kotlin/accumulate/.gradle/buildOutputCleanup/cache.properties.lock @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/compiler.xml b/kotlin/accumulate/.idea/compiler.xml new file mode 100644 index 0000000..e21680e --- /dev/null +++ b/kotlin/accumulate/.idea/compiler.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/gradle.xml b/kotlin/accumulate/.idea/gradle.xml new file mode 100644 index 0000000..20d2df6 --- /dev/null +++ b/kotlin/accumulate/.idea/gradle.xml @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/libraries/Gradle__junit_junit_4_12.xml b/kotlin/accumulate/.idea/libraries/Gradle__junit_junit_4_12.xml new file mode 100644 index 0000000..04c10dd --- /dev/null +++ b/kotlin/accumulate/.idea/libraries/Gradle__junit_junit_4_12.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml b/kotlin/accumulate/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml new file mode 100644 index 0000000..8262f72 --- /dev/null +++ b/kotlin/accumulate/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml b/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml new file mode 100644 index 0000000..4f32fde --- /dev/null +++ b/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_1_1.xml b/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_1_1.xml new file mode 100644 index 0000000..7b6f562 --- /dev/null +++ b/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_1_1.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_1_1_1.xml b/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_1_1_1.xml new file mode 100644 index 0000000..1720158 --- /dev/null +++ b/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_1_1_1.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_junit_1_1_1.xml b/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_junit_1_1_1.xml new file mode 100644 index 0000000..21c5d19 --- /dev/null +++ b/kotlin/accumulate/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_junit_1_1_1.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/misc.xml b/kotlin/accumulate/.idea/misc.xml new file mode 100644 index 0000000..84da703 --- /dev/null +++ b/kotlin/accumulate/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/modules.xml b/kotlin/accumulate/.idea/modules.xml new file mode 100644 index 0000000..c94dfdf --- /dev/null +++ b/kotlin/accumulate/.idea/modules.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/modules/accumulate_main.iml b/kotlin/accumulate/.idea/modules/accumulate_main.iml new file mode 100644 index 0000000..25aaa50 --- /dev/null +++ b/kotlin/accumulate/.idea/modules/accumulate_main.iml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/modules/accumulate_test.iml b/kotlin/accumulate/.idea/modules/accumulate_test.iml new file mode 100644 index 0000000..c7fa7d2 --- /dev/null +++ b/kotlin/accumulate/.idea/modules/accumulate_test.iml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/.idea/workspace.xml b/kotlin/accumulate/.idea/workspace.xml new file mode 100644 index 0000000..06ecff7 --- /dev/null +++ b/kotlin/accumulate/.idea/workspace.xml @@ -0,0 +1,854 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @Ignore + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1496608125326 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/accumulate.iml b/kotlin/accumulate/accumulate.iml new file mode 100644 index 0000000..9f93cf7 --- /dev/null +++ b/kotlin/accumulate/accumulate.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/accumulate/build/classes/main/Accumulate.class b/kotlin/accumulate/build/classes/main/Accumulate.class new file mode 100644 index 0000000000000000000000000000000000000000..5b3d5e552a624e27cafca510001158df32dd1457 GIT binary patch literal 1980 zcmah}T~ixX7=F%XlU>3BOQaO2Qfz6SFp3OqS$4qCEeLv3o`JDGX|Ga+r7l3(`7~;!@;n(~s z_e=$hLEqyIo~&|vC;6zfXBwV@2wCwHD~6ScTwvsTRyCQkTrZugI9}DVlY5O?@;l!) zJj=1&`c87s^h$MZkukSz$Kx%>yyNBlYBkNESoXfiph9IB?Z{%; zo>{kfHJP=&I{90Mt02yB+1NFW%41&VHIpo|ZWxQ5fupvS>zy&M+3{Hk@jeKneO=ZSxNarUXNmS=;x15Ct zFot)#aTV97{&s}pa|PpcCA-|so8ME1k%`Ht8gAlNH*R2p(6R&dz;WzOq%}-oTG-8; zzQ+ruMZs-`m}NJdipg;Ef@=$bJsp1zscs}OPj&Hfnc>n!j#Td*ye~Su%fKw^vSS2V z^Dd^&@x2!I`uV|?ys~i<^1ZJ zhE?3_f`m^CJ<0cBGhpW?m4jB5{@5!?o?SGt_ zCM0^=nBK0?gvqN;nPwo7a|~YH;&n@GMNxbxM9#9!yk9Gs^-$AO@VHUg;QOK6Rj_t! z?)i1H{xMTrIDgff7w8r{*G)`8X1Z8RFTUxG%gmD1ba9g`&+dID&@x=v^li_onOVDG zxfV6C+gkV@q6>$;tBZ?SlzaZ%) z$uXj9(}}J_^vxvt>3fLFO$;C6o&59>t}`q|hoeWBWcV4Qf}16kJUcTiAK^U-NBBU( z=fD2<@9gs+{Fn5-Ln%_|!-x2Y5)INqE+9>*C=oJ28G=(uM?*rKjzuc;De;5ksgdO% z`K5?oBDx9%+jQ0g=`}_bT3ZD-#_<)YBz%o;h{h<8LiCw1lR}}TlEjXYMznjEsK}^I zy}-&;6Ve}8`<-M7qH3*m7FH;#5n%;*D%MY8Tn%)9@+YJh*b?q6DE-)2!ndR&Ou&gg zq0>*Pk^9?-WRVSi5Ag6<%8>#a;*;M7bMXj|x6$q5o{P_1EV+mV%%+Qi3)O}0qUhqu E|9*Df(*OVf literal 0 HcmV?d00001 diff --git a/kotlin/accumulate/build/classes/test/AccumulateTest$accumulateReversedStrings$1.class b/kotlin/accumulate/build/classes/test/AccumulateTest$accumulateReversedStrings$1.class new file mode 100644 index 0000000000000000000000000000000000000000..c80d74950483ff12d56a49ae6550bdc01b6cc395 GIT binary patch literal 1767 zcma)7-EJC36#ix*fY;Q)*s)`$O`Vz~7~EiJ)24yCp#(S7n7F~RRQYOHrg+UVtM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Cif{`Fxs+gKC(TMaC@|2`$(okqm&CVSoafs9*`oCiM6G03GTBEdsNHW1( zb&QrfM(Wtu-bcDsP^5J*BvQ#y;D#Jw4A;-G3=m4y>#+2be!v}_RgZA{b6`R~?ws8Z zg?vEbJCrv^c=QF!CrUkdMyd)TSPAzhcuu=Yzm5l3rISXqK~BIhO0=$$oTU^dcM#Dr i6+Y9*ok}wVU{=Q*?(TrOxQF>2s4ns@7F>+Ei2nh5xD)$ai%k*f8GfJ!kLC8Z z2!+y{uV0Co#Y=;4+p+Sr3{+Hn(!VX2YdgHl zi#}KFqD!uA5tas^4IN6=F0GarCjT8Ihcv_V!24eU<&b5_O4SW^1;gyzK#=w3j_`D8 z{!fUZaFAX-?leW1gUyhqDjVF7i77QV?>caB#Ktg27>>`mgGBuT9OO~3VPTBnVl4>U z#T}uWA(zw(u2i6TuP^mL*JIzOat8wUIC40~kn5VL>)Q@a7{22;$&l7BWyEl$_Wxre zeoJZw=2B0}Qc1m^@49?of;2hQJ);BgQ_39d3%N~t6F&_Ih*JncW7T4TR zcDgCrA!ZJ0w$)5jP?%ifp|Y!3a1az+{S&v4dv0qg1St1Lpe^qCQx=E{SoKiC9ip0{QZ71;Rc4kzt`Ccn#=`=!kj bfCU$exUvNn;VQ0eArqk(VJX5?a^`;my2dC) literal 0 HcmV?d00001 diff --git a/kotlin/accumulate/build/classes/test/AccumulateTest$accumulateUpperCases$1.class b/kotlin/accumulate/build/classes/test/AccumulateTest$accumulateUpperCases$1.class new file mode 100644 index 0000000000000000000000000000000000000000..9881adb6a3066706183efbeb7f72b54118e7d9fd GIT binary patch literal 1687 zcma)7ZEqS!5PtR`fX~#y*o|Z7rL?vaz%CfKY15ddp$=}SF^!6g6#3I~T=AJ>&$``1 z>9_or{(@GOlBks`s~`KLs?MG<1>;DSxSf}sotbB5cKQ3C-~R-#jXJ}6#j=8a;BsXj z+ET6Yk@&;usqOD_Y0I@z9E_n|?|I5~MDb+MFFHcmzTj@L&im~S-x=TgF%Xt=JRysF zL#|Y=pYQ=Mx?FUNP31eHyECnMyu+~a?ig`I8SaklUlAvc7(>hv1FvT@+{=yy`L2Cp zTWTjatzt-B&Mpq~((z%|e#eeO^JxDcM==f!Avsu8#@ zfixVIKxz`qsGv2W>mwaY#*t=NvW{)5_niB@Z&S%@a_ENP{uSuPz+EKVN@5Z3n^?dN zhFRr}`pU4Fy%Nq%ESs3c3PU!ljvbldGNTJr(CsUn`^^=`JY{nU+-A5FrdoY@>f2IM z|6AM*>`}r=+&xd@1BR$}O9<-!Yx<~S>1klp=dvRl^_U@&&9%sBww5EXYq)3P8tyYB zYK`V$rLkKjwrtVlhQ{+3qk3Q~-r6v4oHS`{Hxr$m?K?3HQK zXQbv#BVnY@Uac5gY&(`RG<|0N^>fTfgvQ%c>M|Fe_^Iy&l2RmJbCY1>ct{<%>b@oM z2-#_`r*GH9z>yB=EB}os!`kKD(cn#(%`}~^;41JbirMr6-?H}{9dhwpcxtzUZuOLe@-S{|Dkp3a@@rH+dV{d6OF<2ZrYdyl zW=K;Z=|i$Gh|c6U&M^BLbH9+l@HMS5qM+mR`i>$Jn(q_UU0v8n&%ede#=+)m+(7-OOH$smKJLdrEsc$aSJs`rD3r zHuKHQ1-EBzWJ;N7%Sp{U9(^-kH%qIf%?A%3mCStAM2%uc@dbA9EpaA6(p3j;VxQJ0 tByUiuH;)jh;p6aEK=DG_A_Yn{`q%m72u$KrJUBvB;xmcQB~lWJe*unls&xPW literal 0 HcmV?d00001 diff --git a/kotlin/accumulate/build/classes/test/AccumulateTest$accumulateWithinAccumulate$1$1.class b/kotlin/accumulate/build/classes/test/AccumulateTest$accumulateWithinAccumulate$1$1.class new file mode 100644 index 0000000000000000000000000000000000000000..38d6cde26ed8defb10a85661156652f9bd614103 GIT binary patch literal 1549 zcmb7EZBG+f6n^fswq>X?ROL;4L93K@WhlF@?iP_3W$mWR5;1Hxe7c?9g-fS*$jqH4 ze)G5NFVIABvnGc4(H~_zQwAs$6Ky*8-t*k^`ph}=>GS^|0L9zog!l>i9Ze&X?0*4E0*m)2>wZPP=7GrG>A!Yu9+I-r$w)yMIFEXz8iIUWrfT zx!MkIbKB)=%U;*MR9lr^WWK^M_VpNPBpI%C-JcOBjTA#lsKxQHS0cDl}` zP`VA_r!hjb%}FKoJVT-|MOI_DVqz5I3`X8z$o2Zp;u@~^QQC5xN56@|$&WVCmn&v2=5CeL>;8R-@nlGLLCgIzoB({E^FqW1~k1LiM2N zyC%+Inqly;qyG?^H@N0xY_!@58Xy)e)MrM$BZ6LNGlCKXHOdUP_g|VOJ%)9`G%|*@ z|8mTjVY4aAi1w%E$A42srlUN|&_BnOr(U$YFd*v5SLr)SO5-7AdeUIJsi~Z0uR#Ma zP?JimhON5rpYys)NUr8N+}+^5jN}-+@+?$ZwnSC6WgrP(JZ@Wt{OQ}HZaksZw=TC7 z*P%~Q%ylpH9kC*#kONPY<9Y$jJW;vrQIBM+N(q122c^Ei*EbjrnszzAW{Zv<6Z u7s&ApS(i7FsA9JB{}DeOO7{rB&sE&VgH5mizu?zRBm-0e%muIlWWE5hT!y~@ literal 0 HcmV?d00001 diff --git a/kotlin/accumulate/build/classes/test/AccumulateTest$accumulateWithinAccumulate$1.class b/kotlin/accumulate/build/classes/test/AccumulateTest$accumulateWithinAccumulate$1.class new file mode 100644 index 0000000000000000000000000000000000000000..8c9cfc4b5807ee09fcc45ad96f8758ee066b1902 GIT binary patch literal 1991 zcmb7FTXWk)6#iCrEn6{(;-CA_RchA{#Ki?kz{m*ZI0$9d34COW34!fbtm9yyt zs>lz?$3pE08DAHdbTEc?ea};_kd@v2ZbeAt_>#MoI`6hSyqdgw8cJIUPX?8Z!D(rw zzRUM{#pQCl(p0{X+trht)hff(zx&XUX1JQTKgExZ3`0i9eQ(cUxIUL~@}Rxz*s3~z zlEq*ik4}eiOnne_QhmV6Ba6HN4X-iG);)i_vg@d}&jl5LOX(?oP>hDB8lme_lFZJ+ zJetd4JuMlPClGd^qrfm}?>P3}L+9Il{bC@?M!4g9u zZoWk&=55!}@iuj7I*SE{iTJv3vQ2WYfC*ClZEF<*<%_mmE*+l5_E z$W8Acv0}%0%0pK%{E^Ih=sEc;lJ5RD-%4QNsGLv%|($n@PL9os=Kg9AV}A|4o#}Dx{yvI?6w_$ zGXh{#9na=&i~Ay?2h1yvLa9X8vE;r81o7A6`NB{)&Vq0<*`sBrEdZBMS z8zOQ!wk~bg3urh~Rd>7&4FyX|$FI3O2psD0<$;6N3Fla(DR7SJL;n<}8I6Ug;^rES z#vE}U5j8^+8tu7KxrdSG82yn5h9<2U+Cl2$(IiExFK&}!Bwi^O#$RIcXS`AR1v9^6 z_DT5#ZuFo(2idtnsv`!qT<3oHz6d8hvj}s0vSiqOWkDQOu z-l9(@u=EKK)~a-l0-q#9Q6wX!@~@aFrC(t6CnBSOAJeK)z+d(EFYtu+H16XezNS-w z?q+ERF7*vW`xa5R$ndA6eQOIT3v2z~ZPbR;9b#bJ!UjIu0t;{#))vwMJ`Zp&fEghB E3Udz{E&u=k literal 0 HcmV?d00001 diff --git a/kotlin/accumulate/build/classes/test/AccumulateTest$emptyAccumulateProducesEmptyAccumulation$1.class b/kotlin/accumulate/build/classes/test/AccumulateTest$emptyAccumulateProducesEmptyAccumulation$1.class new file mode 100644 index 0000000000000000000000000000000000000000..df79ecf08dd59d64464015edae07ff3f4336d315 GIT binary patch literal 1248 zcmb7EYfsZq7=BJyw$W9$p>kEcaT%Zt@CI%olR#`T!3bGm_;l8lQP!TCUKaVrZ}GDq zG$vp)F~pDlDC65Q+!is>q&@FB&w1bHy|zDoe)$Gq0nZqgO1d7{fyI4e+wlA`!+zr* zw6T}2Qwwy%TkC>NM~uxUz!+-fhT~hN$nQ7pyeWLc72L{~xm~UCLg(FXAatMXy!?7= zH(xC8^Cr(*T-5U#nbr-ra1OLwU>N?pmjq;n(T@9bJS7lkh?}D6Gz^A`T!)v<>b{}- zg{eOwhD@xH;oXA z5mcLJ7(Y2w6ndphQjwBU=Hzf#nqv#`j11fr?ug?xo!$>P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*i8)&?>~9X#m%Y1Rg;@(RrF+)`PnkfV)kWsO(rG zw}Z*HGQ#P6INTAXn$G1CuQYR4V7}HG=CJ@~H{IkFm}3nv51|`}ag2bTBfZqaydJ>3 zOO_DkB9&Hf__|=Mke`nvN|lNW_mXh02=}VTrXQ^fw;|jc!aaFZsP_+8^CNe$)jWkE zT5g;qDkK~xcq!cQ#N3Sw*!IP|Sd+{FDl$l@-593m5gL0G*KvGTLN|ki?)aj})@ikg zkej9D@4k1MLl?X6WWau34g1*|z-0xWB56EL(a%s?r|ZBnalq0J6x%;Zt=PShp}V;C z3mN5Y-d=XrOezLY7;*QV7j+wVs9nro9-XfFy&&! zuCek^PEH+8jhs4tHYE>@%lMuaNfX-r)B-(}QMsM)+iQMn`R$v2E7W#{AiqbD-(NsD zix0g25Aji@_c1x}iFkav0A}Mee7=A^HU@2cK?K>j=ov#cZrV6& accumulate(inpList: List, func: (T) -> R): List { + var outList: MutableList = emptyList().toMutableList() + for (i in inpList){ + outList.add(func(i)) + } + return outList + } +} \ No newline at end of file diff --git a/kotlin/accumulate/src/test/kotlin/AccumulateTest.kt b/kotlin/accumulate/src/test/kotlin/AccumulateTest.kt index 665ea44..85cdf89 100644 --- a/kotlin/accumulate/src/test/kotlin/AccumulateTest.kt +++ b/kotlin/accumulate/src/test/kotlin/AccumulateTest.kt @@ -12,7 +12,7 @@ class AccumulateTest { assertEquals(expectedOutput, Accumulate.accumulate(input, { x -> x * x })) } - @Ignore + @Test fun accumulateSquares() { val input = listOf(1, 2, 3) @@ -20,7 +20,7 @@ class AccumulateTest { assertEquals(expectedOutput, Accumulate.accumulate(input, { x -> x * x })) } - @Ignore + @Test fun accumulateUpperCases() { val input = listOf("hello", "world") @@ -28,7 +28,7 @@ class AccumulateTest { assertEquals(expectedOutput, Accumulate.accumulate(input, { it.toUpperCase() })) } - @Ignore + @Test fun accumulateReversedStrings() { val input = "the quick brown fox etc".split(" ") @@ -36,7 +36,7 @@ class AccumulateTest { assertEquals(expectedOutput, Accumulate.accumulate(input, { it.reversed() })) } - @Ignore + @Test fun accumulateWithinAccumulate() { val input1 = listOf("a", "b", "c") @@ -47,7 +47,7 @@ class AccumulateTest { )) } - @Ignore + @Test fun accumulateToDifferentType() { val input = listOf(1, 2, 3) diff --git a/kotlin/word-count/.idea/workspace.xml b/kotlin/word-count/.idea/workspace.xml index 3a0e964..2ae745a 100644 --- a/kotlin/word-count/.idea/workspace.xml +++ b/kotlin/word-count/.idea/workspace.xml @@ -442,7 +442,7 @@ - + @@ -844,7 +844,7 @@ -