12 lines
256 B
Plaintext
12 lines
256 B
Plaintext
|
|
main() (json: Text) {
|
|
total = reduce(add, [1, 2, 3], 0)
|
|
json = dever.json.stringify(
|
|
dever.json.parse("{\"message\":\"你好 Dever\",\"total\":" + int.to_text(total) + "}")
|
|
)
|
|
}
|
|
|
|
add(value: Int, total: Int) (next: Int) {
|
|
next = total + value
|
|
}
|