monad-ts
Version:
Monad-ts is a small library implements some of key monads and way to chain them in a pipe (flow) in JavaScript and TypeScript. Angular 2+ compatible.
162 lines • 3.24 kB
JSON
{
"type": "File",
"start": 0,
"end": 174,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 174,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 0
}
},
"sourceType": "module",
"body": [],
"directives": [],
"leadingComments": null,
"innerComments": [
{
"type": "CommentBlock",
"value": "*\r\n * MF<T, U> - transformation function's type.\r\n * @public\r\n * @typedef {function(v: T): Pr<U>} MF<T,U>\r\n ",
"start": 0,
"end": 112,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentLine",
"value": "Copyright (c) 2017 Alex Tranchenko. All rights reserved.",
"start": 114,
"end": 172,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 58
}
}
}
]
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n * MF<T, U> - transformation function's type.\r\n * @public\r\n * @typedef {function(v: T): Pr<U>} MF<T,U>\r\n ",
"start": 0,
"end": 112,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentLine",
"value": "Copyright (c) 2017 Alex Tranchenko. All rights reserved.",
"start": 114,
"end": 172,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 58
}
}
}
],
"tokens": [
{
"type": "CommentBlock",
"value": "*\r\n * MF<T, U> - transformation function's type.\r\n * @public\r\n * @typedef {function(v: T): Pr<U>} MF<T,U>\r\n ",
"start": 0,
"end": 112,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentLine",
"value": "Copyright (c) 2017 Alex Tranchenko. All rights reserved.",
"start": 114,
"end": 172,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 58
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 174,
"end": 174,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 0
}
}
}
]
}