my @stuff=getSomeList();
for my $thing (sort @stuff) {
say "$thing"; # quoted to force stringifcation
}
####
say "$_" for sort getSomeList(); # quoted to force stringifcation
####
SomeGlobal::StdLib::Class->getFactoryInstance()->getSomeList()->sort()->forEach(SomeOtherGlobal::StdLib::Class->getInstance()->createStdoutWriterFunction());
####
// Copied from Wikipedia
var results = from c in SomeCollection
where c.SomeProperty < 10
select new {c.SomeProperty, c.OtherProperty};
foreach (var result in results)
{
Console.WriteLine(result);
}
####
// Copied from Wikipedia
var results =
SomeCollection
.Where(c => c.SomeProperty < 10)
.Select(c => new {c.SomeProperty, c.OtherProperty});
results.ForEach(x => {Console.WriteLine(x.ToString());})
####
my @results=map {
[ $_->{'SomeProperty'}, $_->{'OtherProperty'} ]
} grep {
$_->{'SomeProperty'} < 10
} @SomeCollection;
say join(' ',@$_) for @results;