Hello every one:
Let’s Suppose we have a dictionary:
#let indexed_dates= (
(0.0, "2023-01-01"),
(1.0, "2023-01-02"),
(2.0, "2023-01-03"),
(3.0, "2023-01-04"),
(4.0, "2023-01-05"),
(5.0, "2023-01-06"),
(7.0, "2023-01-08"),
(8.0, "2023-01-09"),
(9.0, "2023-01-10"),
(10.0, "2023-01-11"))
I want to select just the dates where the index is a multiple of 5,
Can we filter like this ? (I know we can’t because it doesn’t run haha :
indexed_dates = indexed_dates.map(x=> x if x.at(0)/5==0)
Thank you !