Skip to main content
1 of 2
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
bsoelch
  • 6k
  • 1
  • 9
  • 62