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.
私は最近、いくつかの Clojure や Scala を見ました (申し訳ありませんが、私はそれらに精通していません)。zip とは何ですか? どこから来たのですか?
残念ながら、トップアンサーにコメントを残すほどのポイントはありませんが
zip xs ys = zipWith xs ys (\x y -> (xs, ys))
間違っている、それはする必要があります:
zip xs ys = zipWith (\x y -> (x,y)) xs ys
または単に:
zip = zipWith (\x y -> (x,y))