0
- (eq (x class)
NSCFString)))
0
+ (eq (x class)
("" class))))
0
;; For example (apply + '(1 2)) returns 3.
0
- (set __f (eval (car margs)))
0
- (set __args (eval (cdr margs)))
0
- (eval (cons __f __args))))
0
+ (set __f (eval (car margs)))
0
+ (set __args (eval (cdr margs)))
0
+ (eval (cons __f __args))))
0
;; Evaluates an expression and raises a NuAssertionFailure if the result is false.
0
;; For example (assert (eq 1 1)) does nothing but (assert (eq (+ 1 1) 1)) throws
0
- (set expression (car margs))
0
- (if (not (eval expression))
0
- (then (throw ((NSException alloc)
0
- initWithName:"NuAssertionFailure"
0
- reason:(expression stringValue)
0
+ (set expression (car margs))
0
+ (if (not (eval expression))
0
+ (then (throw ((NSException alloc)
0
+ initWithName:"NuAssertionFailure"
0
+ reason:(expression stringValue)
0
;; Allows mapping a function over multiple lists.
0
;; For example (map + '(1 2) '(3 4)) returns '(4 6).
0
;; For example (map + '(1 2) '(3)) returns '(4).
0
- (if (_lists select:(do (x) (not x)))
0
- (apply f (_lists map: (do (ls) (first ls))))
0
- (_map f (_lists map: (do (ls) (rest ls)))))))))
0
+ (if (_lists select:(do (x) (not x)))
0
+ (apply f (_lists map: (do (ls) (first ls))))
0
+ (_map f (_lists map: (do (ls) (rest ls)))))))))
0
;; Throws an exception.
0
;; This function is more concise and easier to remember than throw.
0
(throw ((NSException alloc) initWithName:type
0
;; Returns an array of filenames matching a given pattern.
0
;; the pattern is a string that is converted into a regular expression.
0
((results allObjects) sortedArrayUsingSelector:"compare:"))))
0
;; Concisely add objects to arrays using this method, which is equivalent to a call to addObject:.
0
(- (void) << (id) object is (self addObject:object)))
0
;; Concisely add objects to sets using this method, which is equivalent to a call to addObject:.
0
(- (void) << (id) object is (self addObject:object)))
0
(set __signatureForIdentifier (NuBridgedFunction functionWithName:"signature_for_identifier" signature:"@@@"))
0
(function __parse_signature (typeSpecifier)
0
(__signatureForIdentifier typeSpecifier (NuSymbolTable sharedSymbolTable)))
0
(set __name ((margs car) stringValue))
0
(unless (set __protocol (Protocol protocolNamed: __name))
0
(set __protocol ((Protocol alloc) initWithName: __name)))
Comments
No one has commented yet.