Created
March 24, 2011 05:41
-
-
Save k33g/884637 to your computer and use it in GitHub Desktop.
écrire un DSL pour ma fille
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ecrire = {println it} | |
faire = { | |
for(i in 1..it.fois){ | |
it.quoi.call() | |
} | |
} | |
faire fois:5, quoi:{ecrire "bonjour"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment