Skip to content

Commit 4cbc8dd

Browse files
committed
Move Functor and Cofunctor to Mercator
1 parent dfb4850 commit 4cbc8dd

File tree

4 files changed

+1
-68
lines changed

4 files changed

+1
-68
lines changed

src/core/rudiments-core.scala

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,6 @@ inline def bond[TypeclassType <: Any { type Self }] = compiletime.summonInline[B
9898
@targetName("erasedValue")
9999
erased def ###[ErasedType] : ErasedType = scala.compiletime.erasedValue
100100

101-
extension [FunctorType[+_], ValueType](value: FunctorType[ValueType])
102-
(using functor: Functor[FunctorType])
103-
104-
def map[ValueType2](lambda: ValueType => ValueType2): FunctorType[ValueType2] =
105-
functor.map(value, lambda)
106-
107-
extension [CofunctorType[-_], ValueType](value: CofunctorType[ValueType])
108-
(using cofunctor: Cofunctor[CofunctorType])
109-
def contramap[ValueType2](lambda: ValueType2 => ValueType): CofunctorType[ValueType2] =
110-
cofunctor.contramap(value, lambda)
111-
112101
extension (value: Any)
113102
def as[ResultType](irrefutable: value.type is Irrefutable into ResultType): ResultType =
114103
irrefutable.unapply(value)

src/core/rudiments.Cofunctor.scala

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/core/rudiments.Functor.scala

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/core/soundness+rudiments-core.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export rudiments
2121
interleave, each, all, sumBy, bi, tri, indexBy, longestTrain, mutable, immutable, snapshot,
2222
place, upsert, collate, establish, plus, runs, runsBy, Cursor, cursor, precursor, postcursor,
2323
cursorIndex, cursorOffset, curse, ult, create, javaInputStream, DecimalConverter, as,
24-
Irrefutable, Extractable, As, ###, map, contramap, Functor, Cofunctor,
24+
Irrefutable, Extractable, As, ###,
2525
Exit, Pid, Quickstart, unit, waive, twin, triple, is, matchable, give, pipe,
2626
tap, also, Counter, loop, Loop, &, tuple, to, WorkingDirectoryError, HomeDirectoryError,
2727
WorkingDirectory, HomeDirectory, workingDirectory, homeDirectory, Bond, binds, bound, prim, sec,

0 commit comments

Comments
 (0)