Data::Linq - LINQ for Perl
use Data::Linq;
my $mh = [
{ user => { id => 1, name => 'Sherlock' }, toys => 'Psychokinesis' },
{ user => { id => 2, name => 'Nero' }, toys => 'Direct Hack' },
{ user => { id => 3, name => 'Elly' }, toys => 'Tri-Ascend' },
{ user => { id => 4, name => 'Cordelia' }, toys => 'Hyper Sensitive' },
];
my $result = enumerable(@$mh)->where(user => {id => { '>' => 3})
->select('toys')->to_array; # $result => ['Try-Ascend', 'Hyper Sensitive']
.NET's LINQ for Perl, Inspired from linq.js
THIS MODULE IS UNDER-DEVELOPMENT
Please send issue and/or pull-request casually.
.NET's Linq Standard Methods (Some may delete/add)
- aggregate
- all
- any
- average
- contains
- count
- default_if_empty
- element_at
- empty
- first
- last
- long_count
- max
- min
- of_type
- range
- repeat
- select
- select_many
- sequence_equal
- single
- sum
- to_array
- to_dictionary
- to_list
- to_lookup
- where
-
LINQ - .NET 統合言語クエリ
-
linq.js - LINQ for JavaScript
Copyright (C) htk291
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
htk291 htk291@gmail.com