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
// This is a comparison between Scala and Ceylon based on this previous comparison I made between Haskell and Groovy: | |
// https://gist.github.com/renatoathaydes/5078535 | |
// Ex 1. If we have two lists, [2,5,10] and [8,10,11] and we want to get the products of all the possible | |
// combinations between numbers in those lists, here's what we'd do. | |
/* SCALA */ | |
for { x <- List(2,5,10); y <- List(8,10,11) } yield x*y |
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
/* | |
* Copyright (C) 2013 Julien Ponge | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in | |
* the Software without restriction, including without limitation the rights to | |
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
* the Software, and to permit persons to whom the Software is furnished to do so, | |
* subject to the following conditions: | |
* |
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
apply plugin: "groovy" | |
sourceCompatibility = 1.7 | |
targetCompatibility = 1.7 | |
compileGroovy { | |
groovyOptions.metaClass.optionMap = { [indy: true, encoding: "UTF-8"] } | |
} | |
compileTestGroovy { |
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
<?xml version="1.0"?> | |
<!DOCTYPE MODE SYSTEM "xmode.dtd"> | |
<MODE> | |
<PROPS> | |
<PROPERTY NAME="lineComment" VALUE="//" /> | |
</PROPS> | |
<RULES> |