From 1af2cee1c2498299b04ebfbca93f6530f4f182ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=B6=E5=A1=9A=E5=A4=AA=E6=99=BA?= <122075081+KajizukaTaichi@users.noreply.github.com> Date: Fri, 8 Nov 2024 19:04:10 +0900 Subject: [PATCH] Create reduce.json --- reduce.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 reduce.json diff --git a/reduce.json b/reduce.json new file mode 100644 index 0000000..dc5ef5b --- /dev/null +++ b/reduce.json @@ -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"] +]