2
我試圖擴展方法Base.∘
。如何在Julia中擴展方法Base.∘
試圖定義
function Base.∘(f₁::Transformation, f₂::Transformation)
println("baz")
end
提供了以下錯誤:
syntax: expected "end" in definition of function "Base"
我在做什麼錯?我該如何擴展它?
嘗試添加冒號:'functionBase.:∘(...)... end' – tim