Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

that's what the splat operator is for - it unpacks a list into separate arguments. in this case e.g.

   xs = (1, 2, 3)
   f(*xs)
is equivalent to f(1, 2, 3), not f((1, 2, 3))


And that's readable?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: