From fea1229809396d26b9ec81267a1f7b7d3b2fc66a Mon Sep 17 00:00:00 2001 From: "Kyle J. Kress" Date: Mon, 23 Jan 2017 14:22:08 -0700 Subject: [PATCH 1/2] `singleton` is now in core --- elm-package.json | 4 ++-- src/List/Extra.elm | 12 +----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/elm-package.json b/elm-package.json index c08d156..93f6749 100644 --- a/elm-package.json +++ b/elm-package.json @@ -1,5 +1,5 @@ { - "version": "5.0.1", + "version": "6.0.0", "summary": "Convenience functions for working with List", "repository": "https://github.com/elm-community/list-extra.git", "license": "MIT", @@ -10,7 +10,7 @@ "List.Extra" ], "dependencies": { - "elm-lang/core": "5.0.0 <= v < 6.0.0" + "elm-lang/core": "5.1.0 <= v < 6.0.0" }, "elm-version": "0.18.0 <= v < 0.19.0" } diff --git a/src/List/Extra.elm b/src/List/Extra.elm index 50da941..2210621 100644 --- a/src/List/Extra.elm +++ b/src/List/Extra.elm @@ -23,7 +23,6 @@ module List.Extra , updateIf , updateAt , updateIfIndex - , singleton , removeAt , filterNot , iterate @@ -81,7 +80,7 @@ module List.Extra {-| Convenience functions for working with List # Basics -@docs last, init, getAt, (!!), uncons, maximumBy, minimumBy, andMap, andThen, takeWhile, dropWhile, unique, uniqueBy, allDifferent, allDifferentBy, replaceIf, setAt, remove, updateIf, updateAt, updateIfIndex, singleton, removeAt, filterNot, swapAt, stableSortWith +@docs last, init, getAt, (!!), uncons, maximumBy, minimumBy, andMap, andThen, takeWhile, dropWhile, unique, uniqueBy, allDifferent, allDifferentBy, replaceIf, setAt, remove, updateIf, updateAt, updateIfIndex, removeAt, filterNot, swapAt, stableSortWith # List transformations @docs intercalate, transpose, subsequences, permutations, interweave @@ -577,15 +576,6 @@ swapAt index1 index2 l = (uncons tail2) -{-| Convert a value to a list containing one value. - - singleton 3 == [3] --} -singleton : a -> List a -singleton x = - [ x ] - - {-| Remove the element at an index from a list. If the index is out of range, this returns the original list unchanged. Otherwise, it returns the updated list. -} removeAt : Int -> List a -> List a From ed4c92cad0d1dc250cba66f90f7fee9f0f0f83f2 Mon Sep 17 00:00:00 2001 From: "Kyle J. Kress" Date: Mon, 23 Jan 2017 15:27:12 -0700 Subject: [PATCH 2/2] core had to be updated --- elm-package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elm-package.json b/elm-package.json index 93f6749..1d97c71 100644 --- a/elm-package.json +++ b/elm-package.json @@ -10,7 +10,7 @@ "List.Extra" ], "dependencies": { - "elm-lang/core": "5.1.0 <= v < 6.0.0" + "elm-lang/core": "5.1.1 <= v < 6.0.0" }, "elm-version": "0.18.0 <= v < 0.19.0" }