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

yes, and the post didn't even touch on metaoperators e.g.

    # use the reduce metaoperator [ ] with infix + to do "sum all"
    [+] 1, 2, 3


That's nothing, use it to calculate the sum of range of values

  say [+] 1..10000000000000000000000000000000000000000000
Which will result in you getting this back in a fraction of a second

50000000000000000000000000000000000000000005000000000000000000000000000000000000000000

(It actually cheats because that particular operator gets substituted for `sum` which knows how to calculate the sum of a Range object.)




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

Search: