Determine if a string has all unique characters: Difference between revisions
Determine if a string has all unique characters (view source)
Revision as of 17:41, 30 December 2019
, 4 years ago→{{header|Haskell}}: Edit to preamble of alternative draft (fold string to Map)
(→Python :: Functional: Updated alternative to sort+group :: folding a string down to a dictionary with reduce.) |
(→{{header|Haskell}}: Edit to preamble of alternative draft (fold string to Map)) |
||
Line 509:
"1234567890ABCDEFGHIJKLMN0PQRSTUVWXYZ" (36) -> '0' (0x30) at 9, 24</pre>
Or
<lang haskell>import qualified Safe as S
import qualified Data.Map.Strict as M
|