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"whichの結果を に変換するにはどうすればよいですIO NodeListかIO (List Node)。私は自分で関数を書くことができることを知っています。組み込み関数はありますか?
Element.querySelectorAll body "h1"
IO NodeList
IO (List Node)
私の実装:
nodeListToList nl = nl & NodeList.getLength <&> (\x -> [0..x - 1]) >>= mapM (item nl) <&> catMaybes