Groovy Goodness: Getting Extension And BaseName For File And Path

Groovy 5 adds the extension methods getExtension and getBaseName to the File and Path classes. You can invoke them as properties for a File and Path objects. Also the asBoolean method is added. This m

JDriven Blog
Combining elements from two Iterable intances into a new List using the interleave method added in Groovy 5: https://blog.mrhaki.com/2025/10/groovy-goodness-interleaving-elements.html #groovy-lang #Groovy #Groovy5
Groovy Goodness: Interleaving Elements From Collections

A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Messages from mrhaki
New extension methods zip and zipAll in Groovy 5 combines elements from two collections: https://blog.mrhaki.com/2025/09/groovy-goodness-grouping-iterables.html #Groovy #Groovy5 #groovy-lang #GroovyLang
Groovy Goodness: Grouping Iterables Using zip And zipAll

A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Messages from mrhaki
Getting the extension or base name for a File or Path instance in Groovy 5 is easy with new extension methods: https://blog.mrhaki.com/2025/09/groovy-goodness-getting-extension-and.html #Groovy #Groovy5
Since Groovy 5 you can use the name of a named group in a regular expression to access the value easily: https://blog.mrhaki.com/2025/09/groovy-goodness-accessing-regular.html #Groovy #Groovy5
Groovy Goodness: Accessing Regular Expression Named Groups By Name

A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Messages from mrhaki
Groovy 5 adds support for the index operator to Stream class: https://blog.mrhaki.com/2025/09/groovy-goodness-using-index-operator.html #Groovy #Groovy5
Groovy 5 adds overloaded versions of the next/previous methods for chars: https://blog.mrhaki.com/2025/09/groovy-goodness-get-next-and-previous.html #Groovy #Groovy5
Groovy Goodness: Get Next And Previous Characters

A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Messages from mrhaki
Groovy 5 introduces support for operator overloading for classes with different method names using a new AST transformation: https://blog.mrhaki.com/2025/09/groovy-goodness-map-methods-to-operators.html #Groovy #Groovy5
Groovy Goodness: Map Methods To Operators

A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Messages from mrhaki
Another new Groovy 5 language feature is the addition of the logical implication operator ==>. See usage of this operator in the following post: https://blog.mrhaki.com/2025/09/groovy-goodness-logical-implication.html #Groovy #Groovy5
Groovy Goodness: Logical Implication Operator

A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Messages from mrhaki
Groovy 5 adds the ability to create ascii bar charts for the command-line: https://blog.mrhaki.com/2025/09/groovy-goodness-create-ascii-bar-charts.html #Groovy #Groovy5
Groovy Goodness: Create Ascii Bar Charts

A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Messages from mrhaki