Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: Re: Re: TIMTOWTDI and other languages

by TheDamian (Vicar)
on Apr 30, 2002 at 04:08 UTC ( [id://162992]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: TIMTOWTDI and other languages
in thread TIMTOWTDI and other languages

The example would work in Perl 6.

It would also scale a little better than nested loops since =~ on an array will short-circuit on finding any match in the array.

Of course, Perl 6 may also have superpositions natively, in which case the problem might be solvable in constant time (on the right hardware ;-)

  • Comment on Re: Re: Re: Re: Re: TIMTOWTDI and other languages

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found