Deepayan Sarkar wrote:

Barely, 46 removing all spaces:

print.q<-function(x)q("no");Q<-1;class(Q)<-"q"

We can also replace <- by = in recent (and _ in older) versions of R to decrease this further.


This is 'R-golf'. Perl golf competitions are quite common and usually result in seriously obfuscated code.


Perhaps someone would like to run an R-golf contest for the R-newsletter (crossword fans: solution to the crossword I set in the last one is coming in the next R-newsletter)? Perl golf contests are run from here [http://perlgolf.sourceforge.net] if you want inspiration.

Baz

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to