How to extend method Base.∘ in Julia

Viewed 574

I'm trying to extend the method Base.∘.

Trying to define

function Base.∘(f₁::Transformation, f₂::Transformation)
    println("baz")
end

Gives the following error:

syntax: expected "end" in definition of function "Base"

What am I doing wrong? How can I extend it?

1 Answers
Related