# File lib/quiz1/t/solutions/Glen M. Lewis/solitaire.rb, line 104 def triple_cut_split(a, b) a,b=b,a if (a > b) print "before triple_cut_split(#{a}, #{b}): " if $debug self.dump if $debug temp = self.dup self.clear temp.slice((b+1)..-1).each {|x| self.push(x) } temp.slice(a..b).each {|x| self.push(x) } temp.slice(0..(a-1)).each {|x| self.push(x) } print "after triple_cut_split(#{a}, #{b}): " if $debug self.dump if $debug end