Shift Registers and Arrays?

OK... My idea for using an array was basically that each array element would represent an output (or input) pin on the shift register so that you'd basically "shift out" the contents of the array. For example, say everything in the array was 0 except for index 3, then shifting out the array would only turn on LED 3. I'm pretty sure you could do this, I'm just having trouble coming up with the logic to do so.