def big=["azeae","azeazeaz","dfsdfsdf","kjkjk","ghf"];
____________________________________________
def sub1=big[2..big.size()-1]
>["dfsdfsdf","kjkjk","ghf"];
___________________________________________
def sub2=big[1..big.size()-2]
>["azeazeaz","dfsdfsdf","kjkjk"];
No comments:
Post a Comment