source:
framspy/evolalg/repair/remove/function.py
@
1113
Last change on this file since 1113 was 1113, checked in by , 4 years ago | |
---|---|
File size: 250 bytes |
Rev | Line | |
---|---|---|
[1113] | 1 | |
2 | ||
3 | from evolalg.repair.remove.remove import Remove | |
4 | class LambdaRemove(Remove): | |
5 | def __init__(self, func): | |
6 | super(LambdaRemove, self).__init__() | |
7 | self.func = func | |
8 | ||
9 | def remove(self, individual): | |
10 | return self.func(individual) |
Note: See TracBrowser
for help on using the repository browser.