forked from pmougin/F-Script
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathArrayRep.h
31 lines (25 loc) · 889 Bytes
/
ArrayRep.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* ArrayRep.h Copyright (c) 1998-2009 Philippe Mougin. */
/* This software is open source. See the license. */
#import <Foundation/Foundation.h>
@class FSArray;
@class ArrayRepId;
@class FSBlock;
@protocol ArrayRep <NSCopying>
@required
- (ArrayRepId *) asArrayRepId;
- (enum ArrayRepType)repType;
@optional
- (NSUInteger)count;
- (NSString *)descriptionLimited:(NSUInteger)nbElem;
- (FSArray *) distinctId;
- (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range identical:(BOOL)identical;
- (id)indexWithArray:(FSArray *)index;
- (id)operator_backslash:(FSBlock*)bl; // precond: ![bl isProxy] && count != 0
- (void)removeLastElem;
- (void)removeElemAtIndex:(NSUInteger)index;
- (FSArray *)replicateWithArray:(FSArray *)operand;
- (FSArray *)reverse;
- (FSArray *)rotatedBy:(NSNumber *)operand;
- (FSArray *)sort;
- (NSArray *)subarrayWithRange:(NSRange)range;
@end