~/dev> ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
:Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... tlinking ... done.
Prelude>
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
RACSignal *req; | |
switch (verb) { | |
case GET: | |
req = [[self requestManager] rac_GET:path parameters:parameters]; | |
break; | |
case POST: | |
req = [[self requestManager] rac_POST:path parameters:parameters]; | |
break; | |
} |
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
@implementation WMListingsViewModel | |
- (id)init { | |
// combine bounding box and type signals and then feed through api to get current listings | |
_currentListings = [[[[[RACSignal | |
combineLatest:@[allBoundingBoxSources, | |
_currentType, | |
combinedFilters] | |
reduce:toListingQuery] |
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
Preparing | |
Analyzing dependencies | |
――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― | |
### Report | |
* What did you do? | |
* What did you expect to happen? |
| message number | messageWindow array-length |
|----------------|----------------------------|
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| ... | ... |
| 20 | 20 |
| 21 | 1 |
messages: [socket1, msg1] --> [socket1, msg2] --> [socket3, msg3] --> [socket2, msg4]
socket1 --> socket2 --> socket3
| | |
v v v
msg1 msg4 msg3
|
v
msg2
connections: socket1 --> socket2 --> socket3
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
function tag(label) { | |
return function(value) { | |
return [label, value]; | |
}; | |
} | |
Bacon.mergeAll( | |
connections.map(tag("connection")), | |
messages.map(tag("message")), | |
entries.map(tag("entry")), |
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
var streamC = streamB.flatMap(function() { | |
var x = undefined; | |
x.foo(); // undefined is not a function | |
}); | |
streamC.onError(function(err) { | |
// does not catch 'undefined is not a function' | |
}); |