com.github.mperry.fg.IOConstants.groovy Maven / Gradle / Ivy
package com.github.mperry.fg;
import fj.Unit
import fj.data.Option
import groovy.transform.TypeChecked;
/**
* Created with IntelliJ IDEA.
* User: MarkPerry
* Date: 8/11/13
* Time: 10:21 AM
* To change this template use File | Settings | File Templates.
*/
@TypeChecked
class IOConstants {
static Option console() {
Option.fromNull(System.console())
}
static SimpleIO stdinReadLine() {
new SimpleIO() {
String run() {
System.in.newReader().readLine()
}
}
}
static SimpleIO
© 2015 - 2025 Weber Informatics LLC | Privacy Policy