Pascal's triangle: Difference between revisions

Content deleted Content added
m →‎one-liner: s/series/sequence/ per recent spec change
m →‎Combinations: minor corrections
Line 1,122:
puts [join [pascal_coefficients 6] \n]</lang>
===Combinations===
{{trans|Java}}
{{trans|Java}}, however thanksThanks to Tcl 8.5's arbitrary precision integer arithmetic, this solution is not limited to a couple of dozen rows. Uses a caching factorial calculator to improve performance.
<lang tcl>package require Tcl 8.5
 
Line 1,158 ⟶ 1,159:
 
puts [join [pascal_combinations 6] \n]</lang>
 
===Comparing Performance===
<lang tcl>set n 100