Positive decimal integers with the digit 1 occurring exactly twice: Difference between revisions

Realize in F#
(Realize in F#)
Line 67:
</pre>
 
=={{header|F_Sharp|F#}}==
<lang fsharp>
// 3 digit numbers with 2 ones. Nigel Galloway: July 6th., 2021
[0;2;3;4;5;6;7;8;9]|>List.collect(fun g->[[g;1;1];[1;g;1];[1;1;g]])|>List.iter(fun(n::g::l::_)->printf "%d " (n*100+g*10+l)); printfn ""
</lang>
{{out}}
<pre>
11 101 110 211 121 112 311 131 113 411 141 114 511 151 115 611 161 116 711 171 117 811 181 118 911 191 119</pre>
</pre>
=={{header|Go}}==
{{trans|Wren}}
2,171

edits