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

The empty set is `{*()}`.


never seen

    {*()}
    
but I guess it is equivalent to

    set()
    
I've noticed this in python in another place

    f"{var}"
    
is the same as

    str(var)
    
there was some other place I can't recall also noticing that (at least my perception understands that) Python is trying to kill my code golf tendencies.

That said, it's probably just my own superstition and of course it doesn't remove my premature optimization tendencies...


this is beautiful




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

Search: