From ff9157674da3863512a2f068d9df02236d0652dc Mon Sep 17 00:00:00 2001 From: RJ Dellecese Date: Mon, 30 Dec 2019 14:06:16 -0500 Subject: Remove identity and always functions --- src/gleam/generic.gleam | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3