Using Swift Extensions and Generics to make multipend function for Arrays


meditate in the matrix

1multipendStupidity1

Simple multipend function extension to Swift arrays (also showing generics in action)

Been procrastinating on blogging again, but I’m gonna try and crank out a post every day for the next week. Just a small goal for myself.

Tomorrow, well actually today since it’s 3:50 am, is going to get crazy. It’s the TIY Hackathon. 48 hours to crank out a product, beer and food on Friday as a starting ceremony, and off to the races. That was definitely a high pressure environment, and I can’t wait to go through the gauntlet again as a TA. This time, I’ll be on the helping end, so less pressure, but I’m still going to have my challenges with the spontaneous errors that are sure to occur. Anyways, more on that later.

So what we have here is that simple function that I wanted that could simply add multiple items to an array…

View original post 161 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s