History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-597
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Rodrigo B. de Oliveira
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

extension methods

Created: 08/Nov/05 08:36 PM   Updated: 08/Nov/05 08:36 PM
Component/s: Compiler
Affects Version/s: None
Fix Version/s: 0.7.5

Time Tracking:
Not Specified


 Description  « Hide
// module1.boo
namespace MyExtensions

def Each(self as System.Collections.IEnumerable, action as callable(object)):
for item in self:
action(item)

// module2.boo
import MyExtensions

(1, 2, 3).Each(print)
[1, 2, 3].Each(print)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.