You used a token for "StackOverflow (2 week long assignment)" in "Big Data Analysis with Scala and Spark". Please use a token for the assignment you are submitting.
open /usr/local/Cellar/scala. This will open a finder and show the idea directory. You can drag this to the shortcut sidebar.).
import week3._. In Rational.scala I have no warnings, but in scratch.sc I get a warning that "Package names doesn't correspond to directory structure." My project is setup like this: progfun/src/main/scala/week3 where week3 is a Package in IntelliJ, and Rational.scala and scratch.sc are Scala Class and Scala Worksheet, respectively. Has anyone here run the examples from the lectures in week3 in IntelliJ can help me get this working?
If you're on the search for your new Scala gig, check out Functional Works for some of the greatest Scala opportunities around the world!
Check it out - https://goo.gl/HxigLe
it asks you to implement:
/** * Returns a set transformed by applying `f` to each element of `s`. */ def map(s: FunSet, f: Int => Int): FunSet
however, you cannot actually correctly implement such a set using
f. you need the inverse of
f (which may not even exist, e.g. for
_ / 2). you can hack it together by iterating over some subset of the domain, as is done with
exists, but that is not a completely correct solution/implementation, and also should be documented as needing to use the upper and lower bounds if you need to do so