From: Anna Baas Date: 2012-10-12T03:14:56+09:00 Subject: Convert elements of array into a single integer Hi, I've tried searching for this on the forum and couldn't find an answer. Apologies if it's already out there. I've converted the digits of an integer into elements of an array, like so: x = some_integer y = "#{x}".scan(/./) Now, after using y for my nefarious purposes, I would like to re-convert the elements (still containing one digit each) into an integer. I don't mind writing a routine for it, but was wondering if there's some magical way to do it quicker :) Ta, Anna -- Posted via http://www.ruby-forum.com/.