介绍
在这个挑战中,你的任务是使用 Go 的匿名函数功能创建灵活的数学转换函数。数据转换在科学计算中对于分析和处理数值数据集至关重要。本挑战的目标是测试你实现 transformNumbers
函数的能力,该函数可以对整数切片应用不同类型的数学操作。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
go(("Golang")) -.-> go/DataTypesandStructuresGroup(["Data Types and Structures"])
go(("Golang")) -.-> go/FunctionsandControlFlowGroup(["Functions and Control Flow"])
go/DataTypesandStructuresGroup -.-> go/slices("Slices")
go/FunctionsandControlFlowGroup -.-> go/functions("Functions")
subgraph Lab Skills
go/slices -.-> lab-437201{{"设计灵活的数学转换"}}
go/functions -.-> lab-437201{{"设计灵活的数学转换"}}
end