Practical numbers: Difference between revisions

Content added Content deleted
(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.))
Line 235: Line 235:
<code># sumOfAnySubset :: [Int] -> Int -> Bool</code>
<code># sumOfAnySubset :: [Int] -> Int -> Bool</code>


the additional variant, show below the original code here gives an actual Python type hint:
the additional variant, show below the original code here, gives an actual Python type hint:


<code>def sumOfAnySubset(xs: List[int]) -> Callable[[int], bool]:</code>
<code>def sumOfAnySubset(xs: List[int]) -> Callable[[int], bool]:</code>