只是一个简单的问题,
你觉得两者哪个更好:
- A recursive function that returns a value
- A recursive function with an OUT paremeter (which will serve as a return value.)
我尝试了这两种方法,结果都一样。
请注意,此功能的主要功能是:
-> accept a String parameter.
-> scan through a list (whick have like 1032 items) and find a match of the string parameter above.
-> then get a specific data from the object that matched the string parameter.
您的意见将不胜感激。