This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface VariableNoBrackets : NSObject | |
| @end | |
| @implementation VariableNoBrackets | |
| NSString *aString; | |
| - (instancetype)initWithString: (NSString *)newString { | |
| self = [super init]; | |
| if (self) { | |
| aString = newString; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (def alphabet (map #(str (char %)) (range (int \A) (inc (int \Z))))) | |
| (defn outside-spaces | |
| [letter letters] | |
| (loop [[current-letter & rest] letters | |
| position 0] | |
| (if (= current-letter letter) | |
| position | |
| (recur rest (inc position))))) |
OlderNewer