Code: Select all
(setq lst '(("header1" "header2" "header3") ( "11" "12" "13") ("21" "22" "23") ("31" "32" "33") ("41" "42" "43" )))
Code: Select all
(filter (and (>= $idx 1) (<= $idx 3)) lst) ;; '(( "11" "12" "13") ("21" "22" "23") ("31" "32" "33") ) wanted.
So, is there a better way to achieve this?