Skip to content

Commit

Permalink
Create reduce.json
Browse files Browse the repository at this point in the history
  • Loading branch information
KajizukaTaichi authored Nov 8, 2024
1 parent 88b8555 commit 1af2cee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions reduce.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
["text", "# Reduce\nIn this reports, I describe how to use reduce function in Gradia"],
["text", "Below code is reducing list created by 'range' function, applicate + function to the list"],
["code", "(reduce (range 10) +)"],

["text", "Below code is reducing list that includes string, applicate lambda expression the list"],
["code", "(reduce '(\"Alice\" \"Bob\" \"Carol\") (lambda '(a c) '(concat a \" -> \" c)))"],
["text", "## Conclusion\nreduce function is usable function in Gradia that alternative loop"]
]

0 comments on commit 1af2cee

Please sign in to comment.