嗨,我有以下代码:
let f n (xs) = if n < 0 then f (n-1) (n:xs) else xs f (-3) [] !! 1
我希望它打印-4
但它不会打印任何内容并在后台继续计算.
我的代码出了什么问题?
haskell list infinite
haskell ×1
infinite ×1
list ×1