Download modules/core/misc/objc/common/ArrayUtil.mm from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/core/misc/objc/common/ArrayUtil.mm
- Command line
-
hf download hf://tgollogly/test/modules/core/misc/objc/common/ArrayUtil.mm
-
curl -L -o ArrayUtil.mm https://huggingface.co/tgollogly/test/resolve/main/modules/core/misc/objc/common/ArrayUtil.mm
317 Bytes
| // | |
| // ArrayUtil.mm | |
| // | |
| // Created by Giles Payne on 2020/02/09. | |
| // | |
| NSMutableArray* createArrayWithSize(int size, NSObject* val) { | |
| NSMutableArray *array = [NSMutableArray arrayWithCapacity:size]; | |
| for (int i = 0; i < size; i++){ | |
| [array addObject:val]; | |
| } | |
| return array; | |
| } | |