IT Japanese · Development & Implementation

What does 関数(かんすう) mean in Japanese?

Function

Terms: 関数
Terms関数
Readingかんすう
English MeaningFunction
LevelCore
Specialty AreaDevelopment & Implementation
SpecialtyIT 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.

Related Terms

Source

Authored by GoMe