general set() function
Merge pull request #99 from yetanotherhacker/set

general set() function