Skip to content

Instantly share code, notes, and snippets.

View umq's full-sized avatar
😪
Zzz

Hirohisa Yamaguchi umq

😪
Zzz
  • Osaka, Japan
  • 03:14 (UTC +09:00)
View GitHub Profile
@umq
umq / XX.m
Created September 27, 2012 14:00 — forked from azurestone/XX.m
空の要素を切り詰める処理
#import <Foundation/Foundation.h>
// gcc -framework Foundation XX.m -o XX.exe
int main(int argc, const char *argv[]){
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// STEP1 普通にjoinする(空の要素がない場合)
NSArray *array_part_a = [NSArray arrayWithObjects:@"1", @"2", @"3", @"4", @"5", @"6", nil];
NSString *string_a = [array_part_a componentsJoinedByString:@" / "];