Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re (tilly) 1: interleave two arrays

by eg (Friar)
on Feb 03, 2001 at 09:23 UTC ( [id://56202]=note: print w/replies, xml ) Need Help??


in reply to Re (tilly) 1: interleave two arrays
in thread interleave two arrays

Yes, I realize that. This came out of my toying with functional programming in perl. Most of the other solutions I've seen here have side effects that I was trying (for intellectual, rather than practical reasons) to avoid.

  • Comment on Re: Re (tilly) 1: interleave two arrays

Replies are listed 'Best First'.
Re (tilly) 3: interleave two arrays
by tilly (Archbishop) on Feb 03, 2001 at 09:58 UTC
    Well a random tip then. Perl does particularly poorly when faced with deep recursion. However it certainly supports functional techniques, and I refer to several examples on my home node.

    BTW I already gave a solution to a generalization of the original problem which is O(n) and has no side-effects at Re (tilly) 1: interleaving lists.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://56202]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found