函數
函數定義需要 => 符號
val fun1 = (x: Int, y: Int) => x + y
方法
def test(f: (Int, Int) => Int): Int = {
f(3, 3)
}
函數定義需要 => 符號
val fun1 = (x: Int, y: Int) => x + y
def test(f: (Int, Int) => Int): Int = {
f(3, 3)
}
https://github.com/nhynes/chisel3-axi Axi.scala Initial commit 3 years ago AxiLite.scala Initi