Practical numbers: Difference between revisions

(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., possibly at the cost of some extra work.
 
(Nothing, of course, excludes the option of using both)
9,659

edits