Skip to content

Commit

Permalink
Merge pull request #146 from piotrgajow/issue/144-MultiplyGroovyCombi…
Browse files Browse the repository at this point in the history
…nations

Issue/144 multiply groovy combinations
  • Loading branch information
wzhouwzhou authored Oct 27, 2018
2 parents f351c5c + 76d9ecf commit 6bf2082
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,8 @@ Name: [David Chen M.](https://github.com/dchenmei)</br>
Place: NY, USA</br>
Coding Experience: C++, Python, Scheme (!) </br>
Email: lastname#2lastname#[email protected] </br>

Name: [Piotr Gajowniczek](https://github.com/piotrgajow)</br>
Place: Lodz, Poland </br>
Coding Experience: Groovy, Java, TypeScript, JavaScript, SQL </br>
Email: [email protected] </br>
1 change: 1 addition & 0 deletions groovy/multiply_ints.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Closure multiply = { int a, int b -> GroovyCollections.combinations((1..a), (1..b)).size() }

0 comments on commit 6bf2082

Please sign in to comment.