Stack.m 559 Bytes
//
//  Stack.m
//  DUREX test
//
//  Created by Imanol Barba on 5/23/14.
//  Copyright (c) 2014 Emmoco. All rights reserved.retur
//

#import "Stack.h"

@interface Stack ()

@property (strong,nonatomic) NSMutableArray *dataArray;
@property (strong,nonatomic) NSIndex *lastPosition;
@end

@implementation Stack

- (void) push: (id) element
{
    [[self dataArray] addObject:element];
}
- (id) pop
{
    [[self dataArray] obj]
    [[self dataArray] removeLastObject];
}
- (NSInteger) count
{
    return [[self dataArray] count];
}
- (void) clear
{
    
}

@end