Hacker News new | ask | show | jobs
by philshem 1987 days ago
when I saw the first() function, I thought it was some default python that was new to me.

But he defines it above in his commonly used functions:

    def first(iterable, default=None) -> object:
        "Return first item in iterable, or default."
        return next(iter(iterable), default)
1 comments

How to tell he's a Lisper. :) Be glad it wasn't car().
madhadron, I'm a Common Lisper, so I'm good with `first` and `rest`.