Skip to content

Commit

Permalink
Merge #26, removing 'singleton'.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcy committed Jan 24, 2017
2 parents c6f1616 + ed4c92c commit e54e4c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions elm-package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -10,7 +10,7 @@
"List.Extra"
],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0"
"elm-lang/core": "5.1.1 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}
12 changes: 1 addition & 11 deletions src/List/Extra.elm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module List.Extra
, updateIf
, updateAt
, updateIfIndex
, singleton
, removeAt
, filterNot
, iterate
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e54e4c4

Please sign in to comment.