aoc-old/aoc/src/main/scala/aoc/y2019/intcode/package.scala

17 lines
298 B
Scala

package aoc.y2019
import cats.data.{Kleisli, State}
package object intcode {
type Flags = LazyList[Int]
type Operation[A] = State[Machine, A]
type Step = Operation[Unit]
type Instruction = Kleisli[Operation, (OperandModes, Flags), Unit]
type OperandModes = Map[Int, OperandMode]
}