Skip to main content
added 284 characters in body
Source Link
JAD
  • 3k
  • 1
  • 11
  • 31

R, 44 bytes (cracked and cracked)

f=function(x)while(1)if(length(x))grep(x,'')

This halts if grep(x,'') receives invalid regex, which was the intended solution. Also fails when given a function as input.

R, 44 bytes

f=function(x)while(1)if(length(x))grep(x,'')

R, 44 bytes (cracked and cracked)

f=function(x)while(1)if(length(x))grep(x,'')

This halts if grep(x,'') receives invalid regex, which was the intended solution. Also fails when given a function as input.

deleted 31 characters in body
Source Link
JAD
  • 3k
  • 1
  • 11
  • 31

R, 7544 bytes

f=function(x)while(tryCatch1)if(!ncharlength(x)|x|!x,error = function(e)1))grep(x,'')

R, 75 bytes

f=function(x)while(tryCatch(!nchar(x)|x|!x,error = function(e)1))grep(x,'')

R, 44 bytes

f=function(x)while(1)if(length(x))grep(x,'')
added 3 characters in body
Source Link
JAD
  • 3k
  • 1
  • 11
  • 31

R, 7275 bytes

f=function(x)while(tryCatch(!nchar(x)|x|x|!x,error = function(e)1))grep(x,'')

R, 72 bytes

f=function(x)while(tryCatch(!nchar(x)|x,error = function(e)1))grep(x,'')

R, 75 bytes

f=function(x)while(tryCatch(!nchar(x)|x|!x,error = function(e)1))grep(x,'')
Source Link
JAD
  • 3k
  • 1
  • 11
  • 31
Loading