๋น ๊ตฌ๋ฉ ์ฑ์ฐ๊ธฐ (341) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [ํจ์ํ ํ๋ก๊ทธ๋๋ฐ][Kotlin] ๊ณ ์ฐจํจ์ HOF High-order Function, Combinator Pattern ์ถ์ฒhttps://softwarepatternslexicon.com/patterns-kotlin/functional/combinator/ Combinator in KotlinExplore the Combinator Design Pattern in Kotlin, a powerful functional programming technique to combine functions, promoting flexible and reusable code. Learn how to implement and use combinators with real-world examples and programmatic illustrations.softwarepatternslexicon.comhttps://kotlinlang.org.. [Kotlin][ํจ์ํ ํ๋ก๊ทธ๋๋ฐ] ๋ฉค๋ฒ ์ฐธ์กฐ ์ถ์ฒKotlin In Actionhttps://antonioleiva.com/function-references-kotlin/ Function references in Kotlin: use functions as lambdas everywhereFunction references allow to use regular functions as lambdas. With them you can write cleaner code in a more functional style.antonioleiva.comhttps://inpa.tistory.com/entry/JAVA8-%E2%98%95-%EB%9E%8C%EB%8B%A4%EC%8B%9D%EC%9D%84-%EB%8D%94-%EC%A7%A7%EA%B2%8C-%EB%A.. [ํจ์ํ ํ๋ก๊ทธ๋๋ฐ] ์ํ ๋ณํ eta conversion ์ถ์ฒChatGPThttps://sookocheff.com/post/fp/eta-conversion/ Eta ReductionThe purpose of eta reduction (also written \(\eta\)-reduction) is to drop an abstraction over a function to simplify it. This is possible when there is nothing more that a function can do to its argument. For example, imagine that we have a simple functionsookocheff.comhttps://library.fiveable.me/key-terms/programming-languages.. [Java][Kotlin] ๊ฐ์์ฑ ๋ณ๊ฒฝ์ ์ฐจ์ด ๋น๊ต ๋ถ๋ฅ์๋ฐ์ฝํ๋ฆฐ๊ธฐ๋ณธ ๊ฐ์์ฑํด๋์ค, ๋ฉ์๋, ํ๋์ ๊ธฐ๋ณธ ๊ฐ์์ฑ์ ํจํค์ง๋ก ๊ฒฐ์ ๋๋ค. ๊ฐ์์ฑ ๋ณ๊ฒฝ์๋ฅผ ์ง์ ํ์ง ์์ผ๋ฉด ํด๋น ์์๋ ๋์ผํ ํจํค์ง ๋ด์์๋ง ์ ๊ทผ ๊ฐ๋ฅํ๋ค.๊ธฐ๋ณธ ๊ฐ์์ฑ์ public์ด๋ค. ๋ณ๋์ ๊ฐ์์ฑ ๋ณ๊ฒฝ์๋ฅผ ์ง์ ํ์ง ์์ผ๋ฉด ํด๋น ํด๋์ค๋ ๋ฉ์๋๋ ์ด๋์๋ ์ ๊ทผ ๊ฐ๋ฅํ๋ค.๊ฐ์์ฑ ๋ณ๊ฒฝ์ ๋น๊ตpublicํด๋์ค, ๋ฉ์๋, ํ๋ ๋ชจ๋ ๋ชจ๋ ๊ณณ์์ ์ ๊ทผ ๊ฐ๋ฅํ๋ค.์๋ฐ์ ๋์ผํ๊ฒ ๋ชจ๋ ๊ณณ์์ ์ ๊ทผ ๊ฐ๋ฅํ๋ค.privateํด๋์ค ๋ด๋ถ์์๋ง ์ ๊ทผ ๊ฐ๋ฅํ๋ซ.๊ฐ์ ํด๋์ค ์์์๋ง ์ ๊ทผ์ด ํ์ฉ๋๋ค.์๋ฐ์ ๋์ผํ๊ฒ ๊ฐ์ ํด๋์ค ๋ด๋ถ์์๋ง ์ ๊ทผ์ด ๊ฐ๋ฅํ์ง๋ง, ๊ฐ์ ํ์ผ ๋ด์ ์ต์์ ์์ค์ ์ ์ธ์ ๋ํด์๋ private๊ฐ ์ ์ฉ๋ ์ ์๋ค.ํ์ผ ๋ด์ ์ฌ๋ฌ ํด๋์ค๊ฐ ์์ผ๋ฉด ๋ค๋ฅธ ํด๋์ค์์ ์ ๊ทผ์ด ๋ถ๊ฐ๋ฅํ๋คprotected๋.. [Kotlin] Local Functions ๋ก์ปฌ ํจ์ ์ถ์ฒhttps://kotlintutorial.io/local-functions-in-kotlin/ Local functions in KotlinIn Kotlin there are local functions that can be defined within a larger function. These functions are only visible within this larger function and cannot be accessed from outside. Local functions have the advantage of making code more readable and clear bykotlintutorial.ioChatGPThttps://cornswrold.tistory.com/464 [Ko.. [ํ๋ก๊ทธ๋๋ฐ] ๋ฉ์๋ ์ถ์ถ ๋ฆฌํฉํ ๋ง Extract Method ์ถ์ฒhttps://zaengle.com/blog/refactoring-techniques-extract-method Refactoring Techniques: Extract Method | Zaengle CorpInsights on refactoring techniques focusing on the extract method and Martin Fowlers's book Refactoring - Improving the Design of Existing Code.zaengle.comhttps://hceris.com/the-humble-extract-method/ The Humble Extract MethodThe extract method refactoring is a low-cost, high-imp.. [Kotlin] Infix call ์ค์ ํธ์ถ ์ถ์ฒhttps://torbjorn.tistory.com/753 [Kotlin] infix call (์ค์ ํธ์ถ)์ฝํ๋ฆฐ์์๋ ํจ์์ infix ํค์๋๋ฅผ ๋ถ์ฌ ๋ฉ์๋๋ก ์ค์ํธ์ถ์ ํ ์ ์์ต๋๋ค public infix fun A.to(that: B): Pair = Pair(this, that) ์๋ฅผ ๋ค๋ฉด Pair๋ฅผ ๋ง๋๋ to ๋ฉ์๋๊ฐ ์์ต๋๋ค val numToEng = mapOf( 1 to "one",torbjorn.tistory.comhttps://kotlinlang.org/docs/functions.html#infix-notation Functions | Kotlin kotlinlang.orgChatGPT์ค์ ํธ์ถ(Infix call)์ ์ฝํ๋ฆฐ์์ ํน์ ํ ํจ์ ํธ์ถ ๋ฐฉ์์ด๋ค. ํจ์ ์ด๋ฆ์ ๋ ์ธ์ ์ฌ์ด.. [Kotlin] Soft Keyword, Hard Keyword, Modifier Keyword ์ถ์ฒChatGPThttps://www.tutorialspoint.com/kotlin/kotlin_keywords.htm Kotlin - KeywordsKotlin - Keywords - Kotlin keywords are predefined, reserved words used in Kotlin programming that have special meanings to the compiler. These words cannot be used as an identifier (variables names, package names, function names etc.) and if used then comwww.tutorialspoint.comhttps://kotlinlang.org/docs/keyword-.. ์ด์ 1 2 3 4 5 6 ยทยทยท 43 ๋ค์