/* * Copyright (c) 2018. Phasmid Software */ package edu.neu.coe.csye7200.asstll case class MappedList[W, +X](ws: Seq[W], f: W => X) extends ListLike[X] { /** * Convert…
Quiz #2 is Wed, March 18th CS 345, Lecture 20 New rule for Office Hours Cameras must be turned on during office hours. Please come…
name := “Lazy” version := “1.0” scalaVersion := “2.13.4” scalacOptions in(Compile, doc) ++= Seq(“-groups”, “-implicits”, “-deprecation”, “-Ywarn-dead-code”, “-Ywarn-value-discard”, “-Ywarn-unused” ) libraryDependencies += “org.scalactic” %% “scalactic”…
Assignment 1 Assignment 2 is designed to test your understanding of the second week of CSYE7200 lectures, in particular Scala’s mechanism for dealing with lazy values. Furthermore, working through…
PowerPoint Presentation Haskell! Intro to Haskell Named after logician Haskell Curry (1900-1982) A more modern functional language: created late 1980’s Many similarities with Racket: Programming…
PowerPoint Presentation CS 345 Lecture 14 Using lab 4 starter file, review numbers, succ and pred, and add. Take a moment to talk about cn-to-num…
1. Name three different ways that the following code is “imperative.” 1) It mutates state, for example: myarray[firstPos] = myarray[otherPos] 2) To hold data it…
Assignment 2 is designed to test your understanding of the second week of CSYE7200 lectures, in particular Scala’s mechanism for dealing with lazy values. Furthermore, working through the assignment, you…