IT Japanese · Development & Implementation
What does 関数 mean in Japanese?
Function
| Terms | 関数 |
|---|---|
| Reading | かんすう |
| English Meaning | Function |
| Level | Core |
| Specialty Area | Development & Implementation |
| Specialty | IT Japanese |
Technical Explanation
A block of code that takes inputs (引数), processes them, and returns a result (戻り値). During review, one often hears "関数が長すぎる" (the function is too long) or "関数に切り出す" (extract into a separate function).
Practical Notes
Originally written with the older kanji 函数 before Japan adopted 関数; means a mathematical function or code function. A function belonging to a class is usually called a method (メソッド).
Workplace Examples
同じ処理があちこちにあるので、一つの関数にまとめましょう。
Since the same processing is scattered around, let's gather it into one function.
この関数は長すぎるので、いくつかに分けたほうがいいと思います。
This function is too long, so I think it's better to divide it into several functions.