groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <paul.king.as...@gmail.com>
Subject Re: groovy git commit: Add missing concat methods of tuples
Date Mon, 26 Nov 2018 14:44:34 GMT
On Tue, Nov 27, 2018 at 12:34 AM <sunlan@apache.org> wrote:
>
> Repository: groovy
> Updated Branches:
>   refs/heads/master aa372c484 -> b6933c7ef
>
>
> Add missing concat methods of tuples
[SNIP]
>      /**
>       * Concatenate a tuple to this tuple.
>       */
> +    public final Tuple1<T1> concat(Tuple0 tuple) {
> +        return new Tuple1<>(v1);
> +    }
[SNIP]

Returning a new tuple is important? Vs returning this?

Cheers, Paul.

Mime
View raw message