summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Util/Array.elm')
-rw-r--r--src/Util/Array.elm34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/Util/Array.elm b/src/Util/Array.elm
deleted file mode 100644
index 9e57c18..0000000
--- a/src/Util/Array.elm
+++ /dev/null
@@ -1,34 +0,0 @@
-module Util.Array exposing
- (
- update,
- update_unsafe,
- filter_first
- )
-
-import Array
-
-update : (
- Int ->
- ((Maybe t) -> (Maybe t)) ->
- (Array.Array t) ->
- (Array.Array t)
- )
-update index fun array =
- case (fun (Array.get index array)) of
- Nothing -> array
- (Just e) -> (Array.set index e array)
-
-update_unsafe : (
- Int ->
- (t -> t) ->
- (Array.Array t) ->
- (Array.Array t)
- )
-update_unsafe index fun array =
- case (Array.get index array) of
- Nothing -> array
- (Just e) -> (Array.set index (fun e) array)
-
-filter_first : (t -> Bool) -> (Array.Array t) -> (Maybe t)
-filter_first fun array =
- (Array.get 0 (Array.filter fun array))