Question: Haskell Question: Make a function triSquares that returns the list of Triangular numbers that are also Square numbers up to (and possibly including) T(n). Use

Haskell Question:

Make a function triSquares that returns the list of Triangular numbers that are also Square numbers up to (and possibly including) T(n). Use filter. Example output:

> triSquares 0

[0]

> triSquares 3

[0,1]

> triSquares 8

[0,1,36]

Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!