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

Incidentally, it's the same in Ruby, and supports :

  a = [1,2,3]
  => [1, 2, 3]
  a << a 
  => [1, 2, 3, [...]]
  a.inspect
It's not true laziness, though; it's as long as the list when you tie it to itself.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: