Skip to content

Commit

Permalink
docs: add design for map and filter
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 23, 2021
1 parent 05faa63 commit 3fd759c
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion examples/story/0033-mapping-dsl-for-transflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ created_date: 2021-12-23 23:15:25
updated_date: 2021-12-23 23:15:25
---


default by fields:

```
Expand Down Expand Up @@ -42,3 +41,27 @@ multiple
blog.title -> title | uppercase | lowercase,
```

size(blog, 150)

methods:

- limit, limit by length
- first/last(T = string) = split by chars
- first/last(T = number) = split by length
- uppercase/lowercase

- int = parseInt
- string = toString
- type system?


- date(str string) = toDate

- sqrt | sin/cos/ = math functional
- regex(string) = default get first

- other custom methods


load custom `transflow.lib.js`

0 comments on commit 3fd759c

Please sign in to comment.