Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64401841
container.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 26, 15:33
Size
468 B
Mime Type
text/x-java
Expires
Tue, May 28, 15:33 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17897154
Attached To
R2664 SHRINE MedCo Fork
container.js
View Options
import * as _ from 'ramda';
export class Container {
constructor(f) {
this.__value = f;
}
static of(value) {
return new Container(function() {
return value;
});
}
get value() {
return this.__value();
}
map(f) {
return this.hasNothing() ? Container.of(null) : Container.of(f(this.value));
}
hasNothing() {
return this.value === null || this.value === undefined;
}
}
Event Timeline
Log In to Comment