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:58, 19 May 2023
, 11 months ago→{{header|Haskell}}
(J) |
|||
Line 273:
squaresSorted :: Integral a => [[a]] -> [a]
squaresSorted = sort . concatMap (filter isPerfectSquare
isPerfectSquare :: Integral a => a -> Bool
|