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

I mean if I have a NonEmptyArray say xs, and I then xs.map(x=>2*x), will the result of this expression be a NonEmptyArray ?


No, unfortunately it will just be number[] as the return type.




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

Search: