์ ์ฒด ๊ธ (374) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [ํจ์ํ ํ๋ก๊ทธ๋๋ฐ] ์ํ ๋ณํ 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-.. [Kotlin] ์ ํ์ผ ํ๋์ ์ฌ๋ฌ ํด๋์ค๋ค์ ์ ์ธํ ์ ์๊ฒ ํ์๊น ์ถ์ฒhttps://kotlinlang.org/docs/coding-conventions.html#source-file-names Coding conventions | Kotlin kotlinlang.orghttps://engineering.salesforce.com/building-data-pipelines-using-kotlin-2d70edc0297c/ Building Data Pipelines Using Kotlin - Salesforce Engineering BlogWe selected Kotlin as an alternative for our backend development to address some of Java’s shortcomings.engineering.salesforce.comCh.. [Kotlin] statement(๋ฌธ)์ expression(์) ์ถ์ฒKotlin In ActionChatGPThttps://blog.kotlin-academy.com/kotlin-programmer-dictionary-statement-vs-expression-e6743ba1aaa0 Kotlin programmer dictionary: Statement vs ExpressionStatement and expression are two important terms which are commonly misunderstood. Let’s start explanation from the expression term.blog.kotlin-academy.com 1. Expression ์๊ฐ์ ๋ฐํํ๋ ์ฝ๋. ๋ค๋ฅธ ์์ ํ์ ์์๋ก ๊ณ์ฐ์ ์ฐธ์ฌํ ์ ์๋ค.์ฝํ๋ฆฐ์์ ๋ชจ๋ ํจ์๋ค์.. ์ด์ 1 2 3 4 5 6 ยทยทยท 47 ๋ค์