Skip to content

Commit

Permalink
docs: add math design for math.js
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 24, 2021
1 parent 9052db8 commit 20ec718
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/story/0033-mapping-dsl-for-transflow.md
Expand Up @@ -4,13 +4,14 @@ author:
status: Spike
priority: Low
created_date: 2021-12-23 23:15:25
updated_date: 2021-12-24 09:44:01
updated_date: 2021-12-24 10:04:16
---

## Design Principle

* reuse JavaScript standard library with default value
* alias some method for fun, and can be handle in other function
* math.js for math: <https://github.com/josdejong/mathjs>?
* pipe syntax for convert

## Pipe map Syntax
Expand Down Expand Up @@ -49,6 +50,12 @@ multiple
blog.title -> title | uppercase | lowercase,
```

math calculate

```javascript
blog.date -> date | int | * 1000
```

size(blog, 150)

methods:
Expand Down

0 comments on commit 20ec718

Please sign in to comment.