Skip to content

ytnobody/p5-Data-Linq

 
 

Repository files navigation

Build Status Coverage Status

NAME

Data::Linq - LINQ for Perl

SYNOPSIS

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']

DESCRIPTION

.NET's LINQ for Perl, Inspired from linq.js

NOTE

THIS MODULE IS UNDER-DEVELOPMENT
Please send issue and/or pull-request casually.

METHOD

.NET's Linq Standard Methods (Some may delete/add)

  • aggregate
  • all
  • any
  • as_enumerable
  • average
  • cast
  • contains
  • count
  • default_if_empty
  • element_at
  • element_at_or_default
  • empty
  • first
  • first_or_default
  • last
  • last_or_default
  • long_count
  • max
  • min
  • of_type
  • range
  • repeat
  • select
  • select_many
  • sequence_equal
  • single
  • single_or_default
  • sum
  • to_array
  • to_dictionary
  • to_list
  • to_lookup
  • where

SEE ALSO

LICENSE

Copyright (C) htk291

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

AUTHOR

htk291 htk291@gmail.com

About

.NET's LINQ for Perl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%