# Backporting C version of Array.combination to ruby 1.86

**URL:** <https://www.ruby-forum.com/t/backporting-c-version-of-array-combination-to-ruby-1-86/172437>\
**Category:** Rails\
**Created:** [July 21, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/backporting-c-version-of-array-combination-to-ruby-1-86/172437 "2009-07-21T16:20:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@karl](https://www.ruby-forum.com/u/karl)\
**Post date:** [July 21, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/backporting-c-version-of-array-combination-to-ruby-1-86/172437/1 "2009-07-21T16:20:14Z")

</div>

I need a speedy version of the Array.combination method. Unfortunately  
the C implementation of this method is only available in ruby 1.87  
while we are tied to 1.86. Is there a way to backport and monkey  
patch the combination method from ruby 1.87 into ruby 1.86. I’ve been  
playing with ruby inline but so far no luck. Of course my experience  
to C was limited to my college days way back when so it’s no surprise.

thx.

-karl
