A small library for padding strings in JavaScript. Marmalade-free.
![NPM version][shield-npm] ![Node.js version support][shield-node] ![Build status][shield-build] ![Code coverage][shield-coverage]
A small library for padding strings in JavaScript. Marmalade-free.
![NPM version][shield-npm] ![Node.js version support][shield-node] ![Build status][shield-build] ![Code coverage][shield-coverage]
public class Reader<R, A> { | |
private final Function<R, A> run; | |
public Reader(Function<R, A> run) { this.run = run; } | |
public <B> Reader<R, B> map(Function<A, B> f) { | |
return new Reader<>( r -> f.apply((apply(r))) ); | |
} | |
public <B> Reader<R, B> flatMap(Function<A, Reader<R, B>> f) { |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.databind.DeserializationFeature; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.SerializationFeature; | |
/** | |
* ObjectMapper customised for my tastes and most typical needs | |
* | |
* @author Joni Karppinen | |
*/ |
// See comments below. | |
// This code sample and justification brought to you by | |
// Isaac Z. Schlueter, aka isaacs | |
// standard style | |
var a = "ape", | |
b = "bat", | |
c = "cat", | |
d = "dog", |