Bash Script Return Array From Function Currying