Skip to content

pedagogically appropriate functions for user input handling in Scala (sans exceptions!)

Notifications You must be signed in to change notification settings

LoyolaChicagoBooks/introcs-scala-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

Scala-UI

Pedagogically appropriate functions for user input handling in Scala (sans exceptions!)

Getting Scala-UI

To use Scala-UI in your sbt-based project, add these lines to your build.sbt

scalaVersion := "2.11.5"

resolvers += "loyolachicagocode@bintray" at "http://dl.bintray.com/loyolachicagocode/maven"

libraryDependencies += "edu.luc.cs" %% "introcs-scala-ui" % "x.y.z"

where x.y.z is the most recent version number of this package available on Bintray.

Quick Start

import edu.luc.cs.ui._

val n = promptInt("What is your favorite number? ", -1)
println(s"Thank you for entering the number $n.")

Running the Sample App

$ sbt test:run
...
What is your favorite number? 7
Thank you for entering the number 7.

About

pedagogically appropriate functions for user input handling in Scala (sans exceptions!)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published