Sum of the digits of n is substring of n: Difference between revisions

m
→‎{{header|Python}}: Extended test set to include 0
(Added Go)
m (→‎{{header|Python}}: Extended test set to include 0)
Line 137:
# main :: IO ()
def main():
'''Matches in [10..999]'''
 
xs = list(
filter(
digitSumIsSubString,
(str(n) for n in range(10, 1000))
)
)
Line 176:
</lang>
{{Out}}
<pre>4748 matches < 1000:
 
0 1 2 3 4 5 6 7 8 9 10
10 20 30 40 50 60 70 80 90 100 109
109 119 129 139 149 159 169 179 189 199 200
200 300 400 500 600 700 800 900 910 911 912
912 913 914 915 916 917 918 919</pre>
 
=={{header|Raku}}==
9,659

edits