qed
qed

Reputation: 23154

Import an operator to be extended in Julia

I was trying to define:

.*(s1::String, s2::String) = string(s1,s2)

and got an error: function Base..* must be explicitly imported, so I did:

import Base..*

but got another error: invalid operator "..*".

How should I import this operator?

Upvotes: 1

Views: 116

Answers (1)

David P. Sanders
David P. Sanders

Reputation: 5325

You can do

import Base.(.*)

What is the use case?

Upvotes: 1

Related Questions