POV-Ray : Newsgroups : povray.off-topic : Java : Re: Java Server Time
29 Jul 2024 18:23:04 EDT (-0400)
  Re: Java  
From: Invisible
Date: 17 Nov 2011 04:26:57
Message: <4ec4d361$1@news.povray.org>
On 24/09/2011 04:37 PM, Darren New wrote:

> What would be in C#
>
> var z = from y select z where z.id = myID
>
> in java becomes
>
> List<OrganizationIndividualRelationshipEntity> z =
> Lists.ImmutableCopyOf(
> Lists.filter(y, new
> Predicate<List<OrganizationIndividualRelationshipEntity>() {
> @override boolean apply(OrganizationIndividualRelationshipEntity x) {
> return x.id = myID;
> }
> }
> )
> }
>
> I've lost track of closing braces....
> )

Haskell has crazy type signatures too.

Haskell also has mechanisms for defining shortcuts. :-P


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.