Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将其结果转换Element.querySelectorAll body "h1"为. 我知道我可以自己编写一个函数。有内置函数吗?IO NodeListIO (List Node)
Element.querySelectorAll body "h1"
IO NodeList
IO (List Node)
我的实现:
nodeListToList nl = nl & NodeList.getLength <&> (\x -> [0..x - 1]) >>= mapM (item nl) <&> catMaybes