Practical numbers: Difference between revisions
→Composition :: 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 239:
<code>def sumOfAnySubset(xs: List[int]) -> Callable[[int], bool]:</code>
The affordances of these two approaches differ – one aims for clarity for the human reader, and speed of drafting,
the other for formal type-checking by a suitably equipped Python compiler
(Nothing, of course, excludes the option of using both)
|