Numbers with same digit set in base 10 and base 16: Difference between revisions
Numbers with same digit set in base 10 and base 16 (view source)
Revision as of 18:12, 8 July 2022
, 1 year ago→{{header|Haskell}}
(→{{header|Haskell}}: Added a version in Haskell) |
|||
Line 537:
---- NUMBERS WITH THE SAME DIGIT SET IN DECIMAL AND HEX --
sameDigitSet :: (Integral a, Show a) => a -> [(
sameDigitSet n =
[ (
| let
]
Line 551 ⟶ 550:
{{Out}}
<pre>("decimal","hex")
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
=={{header|J}}==
|