User talk:TobiasHerp

Python and en:first-class function
What do think about this? (I think it is same like in java example) --Liso (talk) 11:30, 29 August 2008 (UTC)

--Liso (talk) 11:30, 29 August 2008 (UTC)

I think this is a useful use case for function literals; however, this could (and should) be stripped down to:

or even better (this kind of deltaX is usually called epsilon, isn't it?):

Btw, it's a Javascript example we refer to ;-) --Tobias (talk) 18:36, 31 August 2008 (UTC)

Thanx for your clever comments! :) I was sure that I tested stripped version and that didnt worked... So I was wrong. Thanx for fix. I changed function to: ("-" -> "+" and ">" -> "!=")

You introduce me also "assert" statement. Thanx! Python is better than I thought and I like more and more! :) --Liso (talk) 16:09, 3 September 2008 (UTC)