Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
/ p5-List-Linq Public archive

A powerful language integrated query (LINQ) library for Perl5.

License

Notifications You must be signed in to change notification settings

mika-f/p5-List-Linq

Repository files navigation

NAME

List::Linq - .NET LINQ port to Perl.

SYNOPSIS

use List::Linq;

my $data = [
    { user => { id => 1, name => 'Sophie Neuenmuller' }, series => [qw/A17 A18 A19/] },
    { user => { id => 2, name => 'Plachta' },            series => [qw/A17 A18 A19/] },
    { user => { id => 3, name => 'Corneria' },           series => [qw/A17 A19/] },
];

# ['Sophie Neuenmuller', 'Corneria']
my $filtered = enumerable($data)->where(sub { $_->{user}->{id} % 2 == 1 }) # filter by index
                                ->select(sub { $_->{user}->{name} })       # get user name
                                ->to_array();                              # get result as array

DESCRIPTION

A powerful language integrated query (LINQ) library for Perl5.
This module is a port of .NET 5's LINQ methods.
It can be written in Perl in the same way as when using LINQ in C# and other .NET languages.
See the test directory for a list of ported methods.

METHODS

TODO

LICENSE

Copyright (C) Mikazuki Fuyuno.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Mikazuki Fuyuno <[email protected]>

About

A powerful language integrated query (LINQ) library for Perl5.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages