1
0
forked from Mirror/wren

Style choice: I had been writing methods with spaces before the arguments, but that doesn't seem to be the case in the documentation. This is just to keep things consistent

This commit is contained in:
Kyle Marek-Spartz
2014-02-18 11:54:55 -06:00
parent b59f33fa6f
commit 9792581292
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
class Sequence { class Sequence {
map (f) { map(f) {
var result = [] var result = []
for (element in this) { for (element in this) {
result.add(f.call(element)) result.add(f.call(element))
@ -7,7 +7,7 @@ class Sequence {
return result return result
} }
where (f) { where(f) {
var result = [] var result = []
for (element in this) { for (element in this) {
if (f.call(element)) result.add(element) if (f.call(element)) result.add(element)

View File

@ -42,7 +42,7 @@
// This string literal is generated automatically from core. Do not edit. // This string literal is generated automatically from core. Do not edit.
static const char* libSource = static const char* libSource =
"class Sequence {\n" "class Sequence {\n"
" map (f) {\n" " map(f) {\n"
" var result = []\n" " var result = []\n"
" for (element in this) {\n" " for (element in this) {\n"
" result.add(f.call(element))\n" " result.add(f.call(element))\n"
@ -50,7 +50,7 @@ static const char* libSource =
" return result\n" " return result\n"
" }\n" " }\n"
"\n" "\n"
" where (f) {\n" " where(f) {\n"
" var result = []\n" " var result = []\n"
" for (element in this) {\n" " for (element in this) {\n"
" if (f.call(element)) result.add(element)\n" " if (f.call(element)) result.add(element)\n"