http://zevlg.livejournal.com/ ([identity profile] zevlg.livejournal.com) wrote in [personal profile] alexey_rom 2010-03-11 01:52 pm (UTC)

всё нормально старикан сказал. Я вон для geo задачи (с fprog.ru) накатал парсер файлов с полигонами в три строчки! на питоне - сомневаюсь, что такое возможно на любом ФП:
def contours(f):
    def notEND(): return takewhile(lambda x: x[:3] != "END", f)
    def contour(): return [map(float, l.split()) for l in notEND()]       
    return [(contour(), l[0] == "!") for l in notEND()]


Post a comment in response:

This account has disabled anonymous posting.
(will be screened)
(will be screened)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org