Logo
Explore Help
Sign In
generic-library/ChaiScript
1
0
Fork 0
You've already forked ChaiScript
Code Issues Pull Requests Releases Wiki Activity
ChaiScript/unittests/method_lambda.chai
Jonathan Turner 7e5b7cbd7a Switch get_function to default to not doing object lookup. Correct method eval to maintain method lambda syntax. Add unit test for method lambda
2009-08-21 20:05:05 +00:00

4 lines
56 B
ChaiScript
Raw Blame History

var addit = fun(x, y) { return x+y }
print(3.addit(4))
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 31ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API