-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Reduce difficulty (since most of the skeleton has been added) - Move template helper methods to generator_plugin - Add spacing between tests
- Loading branch information
Showing
8 changed files
with
175 additions
and
134 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1398,7 +1398,7 @@ | |
"procs-blocks" | ||
], | ||
"prerequisites": [], | ||
"difficulty": 5 | ||
"difficulty": 3 | ||
} | ||
] | ||
}, | ||
|
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
class ListOps(T) | ||
module ListOps(T) | ||
# Write your code for the 'Simple Cipher' exercise in this file. | ||
|
||
def append(list1 : Array(T), list2 : Array(T)) : Array(T) | ||
def self.append(list1 : Array(T), list2 : Array(T)) : Array(T) | ||
end | ||
|
||
def concat(lists : Array(Array(T))) | ||
def self.concat(lists : Array(Array(T))) | ||
end | ||
|
||
def filter(list : Array(T), function : T -> Bool) : Array(T) | ||
def self.filter(list : Array(T), function : T -> Bool) : Array(T) | ||
end | ||
|
||
def length(list : Array(T)) : Int | ||
def self.length(list : Array(T)) : Int | ||
end | ||
|
||
def map(list : Array(T), function : T -> _) | ||
def self.map(list : Array(T), function : T -> _) | ||
end | ||
|
||
def foldl(list : Array(T), initial : _, function : _, T -> _) | ||
def self.foldl(list : Array(T), initial : _, function : _, T -> _) | ||
end | ||
|
||
def foldr(list : Array(T), initial : _, function : _, T -> _) | ||
def self.foldr(list : Array(T), initial : _, function : _, T -> _) | ||
end | ||
|
||
def reverse(list : Array(T)) : Array(T) | ||
def self.reverse(list : Array(T)) : Array(T) | ||
end | ||
end |
Oops, something went wrong.