Hacker News new | past | comments | ask | show | jobs | submit login

You can also create a function capable of doing that for any object, or one which curries the type parameter, if you'd like to reduce the boilerplate if you have many types of objects you'd like to instantiate positionally.



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

Search: