The goal of this problem is to work the definition of infinite lists. In particular, you are required to define functions that generate infinite lists to:
Specification
Define the following functions:
Observation
In this problem you cannot use infinite enumerations such as [1..], but you are advised to use higer-order functions such as map, scanl, iterate, filter, ...
Scoring
Each function score 10 points.
Input
take 8 ones take 8 nats take 8 ints take 8 triangulars take 8 factorials take 8 fibs take 8 primes take 8 hammings take 8 lookNsay take 6 tartaglia
Output
[1,1,1,1,1,1,1,1] [0,1,2,3,4,5,6,7] [0,1,-1,2,-2,3,-3,4] [0,1,3,6,10,15,21,28] [1,1,2,6,24,120,720,5040] [0,1,1,2,3,5,8,13] [2,3,5,7,11,13,17,19] [1,2,3,4,5,6,8,9] [1,11,21,1211,111221,312211,13112221,1113213211] [[1],[1,1],[1,2,1],[1,3,3,1],[1,4,6,4,1],[1,5,10,10,5,1]]