1
0
forked from Mirror/wren

Remove spaces from after method definitions

This commit is contained in:
Kyle Marek-Spartz
2014-02-17 14:17:54 -06:00
committed by Kyle Marek-Spartz
parent c2e6181b01
commit fa85bb1eef

View File

@ -24,12 +24,12 @@ class Set {
} }
} }
add (element) { add(element) {
_clean = false _clean = false
_list.add(element) _list.add(element)
} }
remove (element) { remove(element) {
cleanup // Remove duplicates, so we can return early upon deletion. cleanup // Remove duplicates, so we can return early upon deletion.
for (i in 0.._list.count) { for (i in 0.._list.count) {
if (_list[i] == element) { if (_list[i] == element) {
@ -39,7 +39,7 @@ class Set {
} }
} }
contains (element) { contains(element) {
return _list.contains(element) return _list.contains(element)
} }
@ -48,7 +48,7 @@ class Set {
return _list.count return _list.count
} }
iterate (i) { iterate(i) {
cleanup cleanup
if (i == null) { if (i == null) {
if (count > 0) return 0 if (count > 0) return 0
@ -58,16 +58,16 @@ class Set {
return i + 1 return i + 1
} }
iteratorValue (i) { iteratorValue(i) {
cleanup cleanup
return _list[i] return _list[i]
} }
map (f) { map(f) {
return new Set(_list.map(f)) return new Set(_list.map(f))
} }
where (f) { where(f) {
return new Set(_list.where(f)) return new Set(_list.where(f))
} }