Collect and sort square numbers in ascending order from three lists: Difference between revisions
Collect and sort square numbers in ascending order from three lists (view source)
Revision as of 22:01, 19 May 2023
, 1 year ago→{{header|Haskell}}: Tidied
No edit summary |
m (→{{header|Haskell}}: Tidied) |
||
Line 276:
isPerfectSquare :: Integral a => a -> Bool
isPerfectSquare
--------------------------- TEST -------------------------
Line 284 ⟶ 283:
main =
print $
squaresSorted
[ [3, 4, 34, 25, 9, 12, 36, 56, 36],
]</syntaxhighlight>
{{Out}}
<pre>[4,9,16,25,36,36,49,81,121,144,169]</pre>
|