Skip to main content
Commonmark migration
Source Link

R, 3 2 bytes

Code

!0           # NOT FALSE

###Code !0 # NOT FALSE OutputsOutputs

TRUE

Wow, finally R, finally.

It seems that {} work too, it outputs NULL

Bonus 33 16 bytes:

Code

rep(1,number*16)

##Bonus 33 16 bytes: ###Code rep(1,number*16) OutputsOutputs

# if number is not defined
> rep(1,number*16)                     
> Error: object 'number' not found     # output is 32 (or 2*16) bytes long error

# if number is defined
> number = 3                            
> rep(1,number*16)                     # output is 16*number bytes long
> 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

R, 3 2 bytes

###Code !0 # NOT FALSE Outputs

TRUE

Wow, finally R, finally.

It seems that {} work too, it outputs NULL

##Bonus 33 16 bytes: ###Code rep(1,number*16) Outputs

# if number is not defined
> rep(1,number*16)                     
> Error: object 'number' not found     # output is 32 (or 2*16) bytes long error

# if number is defined
> number = 3                            
> rep(1,number*16)                     # output is 16*number bytes long
> 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

R, 3 2 bytes

Code

!0           # NOT FALSE

Outputs

TRUE

Wow, finally R, finally.

It seems that {} work too, it outputs NULL

Bonus 33 16 bytes:

Code

rep(1,number*16)

Outputs

# if number is not defined
> rep(1,number*16)                     
> Error: object 'number' not found     # output is 32 (or 2*16) bytes long error

# if number is defined
> number = 3                            
> rep(1,number*16)                     # output is 16*number bytes long
> 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
ponctuation
Source Link
Mutador
  • 1.4k
  • 10
  • 15

R, 3 2 bytes

###Code !0 # NOT FALSE Outputs

TRUE

Wow, finally R, finally.

It seems that {} work too, it outputs NULL

##Bonus 33 16 bytes: ###Code rep(1,number*16) Outputs:

# if number is not defined
> rep(1,number*16)                     
> Error: object 'number' not found     # output is 32 (or 2*16) bytes long error

# if number is defined
> number = 3                            
> rep(1,number*16)                     # output is 16*number bytes long
> 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

R, 3 2 bytes

###Code !0 # NOT FALSE Outputs

TRUE

Wow, finally R, finally.

It seems that {} work too, it outputs NULL

##Bonus 33 16 bytes: ###Code rep(1,number*16) Outputs:

# if number is not defined
> rep(1,number*16)                     
> Error: object 'number' not found     # output is 32 (or 2*16) bytes long error

# if number is defined
> number = 3                            
> rep(1,number*16)                     # output is 16*number bytes long
> 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

R, 3 2 bytes

###Code !0 # NOT FALSE Outputs

TRUE

Wow, finally R, finally.

It seems that {} work too, it outputs NULL

##Bonus 33 16 bytes: ###Code rep(1,number*16) Outputs

# if number is not defined
> rep(1,number*16)                     
> Error: object 'number' not found     # output is 32 (or 2*16) bytes long error

# if number is defined
> number = 3                            
> rep(1,number*16)                     # output is 16*number bytes long
> 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
changed the bonus code
Source Link
Mutador
  • 1.4k
  • 10
  • 15

R, 3 2 Bytesbytes

###Code !0 # NOT FALSE Outputs

TRUE

Wow, finally R, finally.

It seems that {} work too, it outputs NULL

##Bonus 33 16 bytes: ###Code rep(1,ifelse(exists("n"),n*33,2)number*16) UngolfedOutputs:

# if number is not defined
> rep(1,number*16)             # Repeat "1" by second argument given times 
> Error: object 'number' ifelse(not found     # output is 32 (or 2*16) bytes long error

# if truenumber executesis firstdefined
> argument,number else= second
3      exists                      
> rep("n")1,number*16) # boolean for if number exists or not             # output is 16*number bytes long
> 1 1 1 1 1 1 n*33,1 1 1 1 1 1 1 1 1 1 1 #1 1 n*331 times1 if1 n1 exists
1 1 1 1 1 1 2))1 1 1 1 1 1 1 1 1 1 #1 1 only1 21 times1 if1 n1 not1 exists1

R, 3 2 Bytes

###Code !0 # NOT FALSE Outputs

TRUE

Wow, finally R, finally.

It seems that {} work too, it outputs NULL

##Bonus: ###Code rep(1,ifelse(exists("n"),n*33,2)) Ungolfed

rep(1,             # Repeat "1" by second argument given times
    ifelse(        # if true executes first argument, else second
      exists("n"), # boolean for if number exists or not
      n*33,        #  n*33 times if n exists
      2))          #  only 2 times if n not exists

R, 3 2 bytes

###Code !0 # NOT FALSE Outputs

TRUE

Wow, finally R, finally.

It seems that {} work too, it outputs NULL

##Bonus 33 16 bytes: ###Code rep(1,number*16) Outputs:

# if number is not defined
> rep(1,number*16)                     
> Error: object 'number' not found     # output is 32 (or 2*16) bytes long error

# if number is defined
> number = 3                            
> rep(1,number*16)                     # output is 16*number bytes long
> 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
added 51 characters in body
Source Link
Mutador
  • 1.4k
  • 10
  • 15
Loading
ungolfed bonus
Source Link
Mutador
  • 1.4k
  • 10
  • 15
Loading
bonus added
Source Link
Mutador
  • 1.4k
  • 10
  • 15
Loading
code change
Source Link
Mutador
  • 1.4k
  • 10
  • 15
Loading
Source Link
Mutador
  • 1.4k
  • 10
  • 15
Loading