這是一種將高階函數的參數給定函數兩次: dapp :: (a -> a -> a) -> a -> a
dapp = \f x -> f x x
ghci> dapp (*) 5
25
我們可以作出這樣的短?讓我們來問一下: lambdabot> @pl \f x -> f x x
join
Hooray!讓我們來嘗試一下: import Control.Monad (join)
這是當前代碼我要顯示的信息的數據庫的價值,但在打印了這一點,當它是不是很清楚閱讀.. type Title = String
type Cast = String
type Year = Int
type Fans = String
type Film = (Title, [Cast], Year, [Fans])
type Database = [Film]
testDataba