This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| @interface NSArray (UniqueObjects) | |
| -(NSArray*) uniqueObjects; | |
| -(NSArray*) uniqueObjectsSortedUsingSelector: (SEL)comparator; | |
| -(NSArray*) uniqueObjectsSortedUsingFunction: (NSInteger (*)(id, id, void *)) comparator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "NSArray+UniqueObjects.h" | |
| @implementation NSArray (UniqueObjects) | |
| -(NSArray*) uniqueObjects { | |
| NSSet *set = [[NSSet alloc] initWithArray: self]; | |
| NSArray *vals = [set allObjects]; | |
| [set release]; | |
| return vals; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module WMC | |
| # NoyesParser parses motif files with a header line and | |
| # column lines with symbols in the DNA alphabet in order A,C,G,T | |
| class NoyesParser | |
| attr_accessor :motifset | |
| attr_accessor :nukelinepattern | |
| attr_accessor :namepattern | |
| attr_accessor :normalize | |
NewerOlder