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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -