Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; Let s <- [((6, 2018), 6.0), ((10, 2018), 6.0), ((6, 2018), 12.0)])
- (list (group-by s first))
- ;; >> [((6, 2018), <itertools...), ((10, 2018), <itertools...)
- ;; if I try
- (list (second (first (list (group-by s first)))))
- ; I expect the list of elements having (6, 2018) as first element of the tuple
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement