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
Get step-by-step solutions from verified subject matter experts
