Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (= (slot
- (id Array)
- (id first)) (function n
- (if (id n)
- (slot
- (id self)
- (call
- (id slice)
- (float 0.000000) (id n))))
- (else
- (slot
- (id self)
- (call
- (id at)
- (id n))))))
- (= (slot
- (id Array)
- (id sum)) (function
- (slot
- (id self)
- (call
- (id reduce)
- (function sum n
- (+ (id sum) (id n)))))))
- (= (slot
- (id Array)
- (id min)) (function
- (slot
- (id self)
- (call
- (id reduce)
- (function min n
- (if (< (id n) (id min))
- (id n))
- (id min))))))
- (= (slot
- (id Array)
- (id max)) (function
- (slot
- (id self)
- (call
- (id reduce)
- (function max n
- (if (> (id n) (id max))
- (id n))
- (id max))))))
Add Comment
Please, Sign In to add comment