Skip to main content
Commonmark migration
Source Link

Japt, 12 6 bytes

Saved 6 bytes thanks to @ETHproductions

#yonKi

Try it online!

###Explanation: #yonKi #y // # gets the char-code of y, which is 121 o // Create a range from [0...121] nKi // At each item, perform .n(K.i()), which subtracts each item from Ki (Current year)

Explanation:

#yonKi
#y          // # gets the char-code of y, which is 121
  o         // Create a range from [0...121]
   nKi      // At each item, perform .n(K.i()), which subtracts each item from Ki (Current year)


     

Japt, 12 6 bytes

Saved 6 bytes thanks to @ETHproductions

#yonKi

Try it online!

###Explanation: #yonKi #y // # gets the char-code of y, which is 121 o // Create a range from [0...121] nKi // At each item, perform .n(K.i()), which subtracts each item from Ki (Current year)

Japt, 12 6 bytes

Saved 6 bytes thanks to @ETHproductions

#yonKi

Try it online!

Explanation:

#yonKi
#y          // # gets the char-code of y, which is 121
  o         // Create a range from [0...121]
   nKi      // At each item, perform .n(K.i()), which subtracts each item from Ki (Current year)


     
deleted 29 characters in body
Source Link
Oliver
  • 7.9k
  • 2
  • 18
  • 38

Japt, 12 96 bytes

Saved 36 bytes thanks to @ETHproductions

Ki ô#xn)w#yonKi

Try it online!Try it online!

###Explanation: Ki ô#xn)w ò ) // Create a range from Ki // current year#yonKi #xn #y // to ^ # gets the char- 120 (#x transpiles to 120code of y, nwhich is negation)121 w o // Reverse the output giving usCreate a range from [Year[0...Year-120]121] nKi // At each item, perform .n(K.i()), which subtracts each item from Ki (Current year)

Japt, 12 9 bytes

Saved 3 bytes thanks to @ETHproductions

Ki ô#xn)w

Try it online!

###Explanation: Ki ô#xn)w ò ) // Create a range from Ki // current year #xn // to ^ - 120 (#x transpiles to 120, n is negation) w // Reverse the output giving us a range from [Year...Year-120]

Japt, 12 6 bytes

Saved 6 bytes thanks to @ETHproductions

#yonKi

Try it online!

###Explanation: #yonKi #y // # gets the char-code of y, which is 121 o // Create a range from [0...121] nKi // At each item, perform .n(K.i()), which subtracts each item from Ki (Current year)

added 1 character in body
Source Link
ETHproductions
  • 50.1k
  • 6
  • 94
  • 240

Japt, 12 9 bytes

Saved 3 bytes thanks to @ETHproductions

Ki ô#xn)w

Try it online!

###Explanation: Ki ô#xn)w ò   ) // Create a range from: Ki // Current current year #xn // To 120 to ^ - Current year120 (#n#x transpiles to 120, n is negation)
  )w // Reverse the output giving us a range from [Year...Year-120]

Japt, 12 9 bytes

Saved 3 bytes thanks to @ETHproductions

Ki ô#xn)w

Try it online!

###Explanation: Ki ô#xn)w ò  // Create a range from: Ki // Current year #xn // To 120 - Current year (#n transpiles to 120)
  )w // Reverse the output giving us a range from [Year...Year-120]

Japt, 12 9 bytes

Saved 3 bytes thanks to @ETHproductions

Ki ô#xn)w

Try it online!

###Explanation: Ki ô#xn)w ò ) // Create a range from Ki // current year #xn // to ^ - 120 (#x transpiles to 120, n is negation) w // Reverse the output giving us a range from [Year...Year-120]

added 38 characters in body
Source Link
Oliver
  • 7.9k
  • 2
  • 18
  • 38
Loading
edited body
Source Link
Oliver
  • 7.9k
  • 2
  • 18
  • 38
Loading
Source Link
Oliver
  • 7.9k
  • 2
  • 18
  • 38
Loading