JungIn Choi
03/11/2021, 6:32 PMDay3
• Function arguments - default & positional / can set default value using function
• Using one-line function is useful to modularize and good for readability / "when" works without parameter / for, while does not return value / don't use expensive operations to initialize a default parameter
• Filter (contains, sortedBy, startsWith, endsWith, take) / Lazy eval vs. Eager eval
• Lambda, Function type variables(better for readability), Higher order functions(takes function as an argument)
Self-Comment
• Had several schedules & got a bit tired, so I was quite tempted to use pass
- but I didn't!
• I feel proud of myself, deciding to sit down on my desk after midnight, and continue my studies.
• Actually it's pass 3AM in my timezone.. so I was even tempted to pause the lecture right before moving onto lambda part.. but I didn't! I really had to finish my goals since tomorrow I don't have much time to spend on Kotlin
Goals Tomorrow
• Hopely at least half way into lesson 4 (Classes). Maybe I can finish this kotlin basic lecture till the weekends and move on to android development using kotlin! ThrillingJungIn Choi
03/11/2021, 6:33 PM