List::oo - object interface to list methods

2007-10-22 Thread Eric Wilhelm
Hi all,

A reason to use lambda!  Actually, the reason I though of lambda in the 
first place.

Some of you might remember discussing this some time ago when I was 
hoping to call it list.pm.  Due to the tragedy of the namespace, that 
name hasn't been available for some time (and there is already a line 
forming.)

So, all the good blues names are taken and twoshoes.pm didn't sound 
right...

Anyway, now it has a full set of bindings for everything (I think) in 
List::Util and List::MoreUtils.

Thanks to Jim Keenan for contributing to the test suite and to the rest 
of you for not leaving for ruby while waiting for me to finish this :-D

--Eric
-- 
Moving pianos is dangerous.
Moving pianos are dangerous.
Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.
---
http://scratchcomputing.com
---


Re: got no sys/ioctl.ph ?

2007-10-22 Thread David Cantrell
On Sun, Oct 21, 2007 at 11:19:57PM +0200, Andreas J. Koenig wrote:
  On Sun, 21 Oct 2007 12:31:20 -0700, Eric Wilhelm [EMAIL PROTECTED] 
  said:
  I'm puzzled by the flood of failure reports for unix-like systems, which 
  include even 5.8.8 on linux (close to being my development box, though 
  maybe with a different kernel.)
  I got the require 'sys/ioctl.ph' line from the ioctl() section of 
  `perldoc perlfunc`.  What's the deal?
 h2ph is not being run as part of a perl compilation/installation.

At least some of these reports are coming from me.  My test environments
are deliberately minimal - that is, I build them with Configure, make,
make test, make install, plus I install the handful of modules required
to report tests, and that's it.  h2ph is documented in INSTALL as being
merely something that you *may* wish to do:

sh Configure
make
make test
make install

# You may also wish to add these:
(cd /usr/include  h2ph *.h sys/*.h)
...

so I've not done it.  If people think that perhaps I should, then I
will.  Can't promise to remember to do it next time I build a test
environment though, mind :-)

Incidentally, the h2ph invocation should probably be clarified as
$PREFIX/h2ph in the docs.

-- 
David Cantrell | Cake Smuggler Extraordinaire

Computer Science is about lofty design goals and careful algorithmic
optimisation.  Sysadminning is about cleaning up the resulting mess.


Re: List::oo - object interface to list methods

2007-10-22 Thread Ricardo SIGNES
* Eric Wilhelm [EMAIL PROTECTED] [2007-10-22T02:10:07]
 Anyway, now it has a full set of bindings for everything (I think) in 
 List::Util and List::MoreUtils.

Seems a good bit like http://search.cpan.org/dist/Object-Array/, but with a
shorter constructor.

A SEE ALSO with a comparison would be nice.

-- 
rjbs


Re: OO list module

2007-10-22 Thread Eric Wilhelm
# from Ken Williams on Monday 27 February 2006 13:18:

In your example code for dice(), you have:

   $l-map(\fx)-dice(sub {that_function(@_)})-map(\fy);

Is that equivalent to:

   $l-map(\fx)-dice(\that_function)-map(\fy);

Yes.

--Eric


Re: List::oo - object interface to list methods

2007-10-22 Thread Eric Wilhelm
# from Ricardo SIGNES
# on Monday 22 October 2007 15:27:

Seems a good bit like http://search.cpan.org/dist/Object-Array/, but
 with a shorter constructor.

A SEE ALSO with a comparison would be nice.

Funny how these things tend to happen (without my hearing of them) after 
I start a module, but before I get it to CPAN.

# from Eric Wilhelm on Sunday 21 October 2007 23:10:
Some of you might remember discussing this some time ago when I was
hoping to call it list.pm.

some time ago was Feb 2006.

So, yeah.  Finally, or too late or whatever ;-)

--Eric
-- 
Atavism  n:  The recurrence of any peculiarity or disease of an ancestor
in a subsequent generation, usually due to genetic recombination.
---
http://scratchcomputing.com
---