Why the following two expressions have different results

后端 未结 0 1382
一个人的身影
一个人的身影 2020-12-23 17:28

fibs = 1:1:[x+y|x <- fibs, y <- tail fibs]

return [1,1,2,3,4,5,6,7,8,9]

fibs = 1:1:[x+y|(x, y) <- zip fibs (tail fibs)]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题