Умножьте два списка поэлементно в Haskell

Вы можете попробовать использовать абсолютный путь в вашем коде и посмотреть, поможет ли это.

background-image: url («ЗАВЕРШИТЕ ПУТЬ ЗДЕСЬ / img / lp-background / lp-properties2.png»);

9
задан 4 May 2009 в 09:26
поделиться

1 ответ

zipWith (*) [1,2,3] [2,3,4]

A useful way of finding a function such as zipWith is Hoogle. There, you can enter in the type of the function you're looking for, and it will try to find matching functions in the standard libraries.

In this case your looking for a function to combine two lists of Ints into a single list of Ints using a combiner function (*), so this would be your query: (Int -> Int -> Int) -> [Int] -> [Int] -> [Int]. Hoogle will even find the correct funciton if you change the order of the arguments.

36
ответ дан 4 December 2019 в 06:35
поделиться
Другие вопросы по тегам:

Похожие вопросы: