Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

10 Things You Can Do with Groovy Closures - Tutorial

Szymon Stepniak via YouTube

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

Reviews

Start your review of 10 Things You Can Do with Groovy Closures - Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.