|
Re: Anonymous functions
This is a "good" way to do it.
However, you could make it look a lot "neater" if you changed the "get" method's name to "pressed". That way the if statement would read more like English would.
__________________
I enjoy ARM processors.
Looking to earn rewards for working on Open-Source projects that help FIRST? You may be interested in the Summer of FIRST 2013 project. More info: 2013.summeroffirst.org
Also, visit my (sparse) blog: rainingbitsandbytes.blogspot.com
|