Is there a way to select every 2nd or 3rd (for example) item within a matrix?
For example:
f = [["1", "5", "8", "9"], ["2", "6", "9", "10"], ["3", "7", "11", "12"]]
I am wondering if there is a direct function to select every 2nd number in every list (preferably putting those digits in a list as well). Thus resulting into:
["5", "6", "7"]
I know that I can achieve this using a loop but I am wondering if I can achieve this directly.