slovo | definícia |
one-liner wars (foldoc) | one-liner wars
A game popular among hackers who code
in the language APL (see write-only language and {line
noise}). The objective is to see who can code the most
interesting and/or useful routine in one line of operators
chosen from APL's exceedingly hairy primitive set. A
similar amusement was practiced among TECO hackers and is
now popular among Perl aficionados.
Ken Iverson, the inventor of APL, has been credited with a
one-liner that, given a number N, produces a list of the prime
numbers from 1 to N inclusive. It looks like this:
(2 = 0 +.= T o.| T) / T |
one-liner wars (jargon) | one-liner wars
n.
A game popular among hackers who code in the language APL (see {write-only
language} and line noise). The objective is to see who can code the most
interesting and/or useful routine in one line of operators chosen from
APL's exceedingly hairy primitive set. A similar amusement was practiced
among TECO hackers and is now popular among Perl aficionados.
Ken Iverson, the inventor of APL, has been credited with a one-liner that,
given a number N, produces a list of the prime numbers from 1 to N
inclusive. It looks like this:
(2=0+.=T∅.|T)/T←ιN
Here's a Perl program that prints primes:
perl -wle '(1 x $_) !~ /^(11+)\1+$/ && print while ++ $_'
In the Perl world this game is sometimes called Perl Golf because the
player with the fewest (key)strokes wins.
|
| |
Nenašli ste slovo čo ste hľadali ? Doplňte ho do slovníka.
na vytvorenie tejto webstránky bol pužitý dictd server s dátami z sk-spell.sk.cx a z iných voľne dostupných dictd databáz. Ak máte klienta na dictd protokol (napríklad kdict), použite zdroj slovnik.iz.sk a port 2628.
online slovník, sk-spell - slovníkové dáta, IZ Bratislava, Malé Karpaty - turistika, Michal Páleník, správy, údaje o okresoch V4