Help for this page

Select Code to Download


  1. or download this
    # Keep the last 5.
    if (@sets > 5) {
       @sets = @sets[-5..-1];
    }
    
  2. or download this
    # Keep the first 5.
    if (@sets > 5) {
       @sets = @sets[0..4];
    }