Overview
Explore 10 powerful applications of Groovy closures in this comprehensive tutorial video. Dive into the fundamentals of Groovy closures and learn how to leverage them effectively in various scenarios. Discover practical examples including using closures with collections, currying and closure composition, working with Map.withDefault, regex manipulation, SAM coercion, collection injection, closure delegation, DSL builders, file processing, and system input handling. Gain valuable insights into Groovy programming techniques and enhance your skills with hands-on demonstrations and explanations throughout the video.
Syllabus
| Introduction
| What is Groovy closure?
| Ex-0 Using closures with collections
| Ex-1 Currying and Closure Composition
| Ex-2 Using Map.withDefault with Closure.IDENTITY and method pointer
| Ex-3 Regex matcher.replaceAll with a closure
| Ex-4 Closure to SAM coercion example
| Ex-5 Collection.inject example
| Ex-6 Closure delegation
| Ex-7 Groovy DSL Builders
| Ex-8 File.eachLine example
| Ex-9 System.in.eachLine example
| BONUS information about Groovy
Taught by
Szymon Stepniak