Skip to main content
update to new language version
Source Link
bsoelch
  • 6k
  • 1
  • 9
  • 62

Itr, 5 bytes

#äL¹%

online interpreter

Explanation

#     ; read the list from standard input
 äL   ; push its length
   ¹  ; converted to 1-based range
    % ; point-wise modulo
      ; implicitly output list

Itr, 4 bytes

#L¹%

The ä before the L is no-longer necessary in newer versions

Itr, 5 bytes

#äL¹%

online interpreter

Explanation

#     ; read the list from standard input
 äL   ; push its length
   ¹  ; converted to 1-based range
    % ; point-wise modulo
      ; implicitly output list

Itr, 5 bytes

#äL¹%

online interpreter

Explanation

#     ; read the list from standard input
 äL   ; push its length
   ¹  ; converted to 1-based range
    % ; point-wise modulo
      ; implicitly output list

Itr, 4 bytes

#L¹%

The ä before the L is no-longer necessary in newer versions

Source Link
bsoelch
  • 6k
  • 1
  • 9
  • 62

Itr, 5 bytes

#äL¹%

online interpreter

Explanation

#     ; read the list from standard input
 äL   ; push its length
   ¹  ; converted to 1-based range
    % ; point-wise modulo
      ; implicitly output list