Practical numbers: Difference between revisions

Python::Composition – Restored the deleted original, expressed thanks for the addition of a variant for comparison.)
(Python :: compostion Restored the deleted original, expressed thanks for the addition of a variant for comparison.))
(Python::Composition – Restored the deleted original, expressed thanks for the addition of a variant for comparison.))
Line 231:
A variant of this code with '''actual Python type hints for the compiler''', in lieu of the language-independent Hindley-Milner type comments for the reader shown here, has been helpfully added below, by another user (who objected that my comments looked too much like Haskell), for comparison.
 
For example, where an informal MH type comment (for the central function below) reads:
 
<code># sumOfAnySubset :: [Int] -> Int -> Bool</code>
9,655

edits