aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRJ Dellecese <rjdellecese@gmail.com>2019-12-30 14:06:16 -0500
committerLouis Pilfold <louis@lpil.uk>2019-12-30 22:36:04 +0000
commitff9157674da3863512a2f068d9df02236d0652dc (patch)
treed607f43b1238d3437dd1661a040aadd549fba2a2 /src
parentbba9a3639733cf8327f63c9a25afc615a04f7a6f (diff)
downloadgleam_stdlib-ff9157674da3863512a2f068d9df02236d0652dc.tar.gz
gleam_stdlib-ff9157674da3863512a2f068d9df02236d0652dc.zip
Remove identity and always functions
Diffstat (limited to 'src')
-rw-r--r--src/gleam/generic.gleam6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gleam/generic.gleam b/src/gleam/generic.gleam
index d821ac7..35423c0 100644
--- a/src/gleam/generic.gleam
+++ b/src/gleam/generic.gleam
@@ -1,9 +1,3 @@
-// A function that returns exactly what it was given.
-pub fn identity(a: a) -> a { a }
-
-// A function that, given two values, ignores one and always returns the other.
-pub fn always(_a: a, b: b) -> b { b }
-
// Takes a function that takes two arguments and returns a new function that
// takes the same two arguments, but in reverse order.
pub fn flip(fun: fn(a, b) -> c) -> fn(b, a) -> c {