scala - Sequence passed as a varargs argument -


this question has answer here:

i have interface

object leaf {   def apply(keys: int*): leaf = {     new leaf(keys)   } } 

where leaf class defined follows:

class leaf(keys: seq[int]) extends node(true, keys, seq()) 

is possible pass sequence keys parameter? of course create second varargs method, wonder if there method converts sequence varargs paremeter.

yes, , think mean varargs not varchar :)

leaf(sequence: _*) 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -