Skip to content

Instantly share code, notes, and snippets.

View pysaumont's full-sized avatar

Pierre-Yves Saumont pysaumont

View GitHub Profile
public class List<T> implements Foldable<T>, Appendable<T, List<T>> {
private final java.util.List<T> delegate;
public List(java.util.List<T> delegate) {
this.delegate = delegate;
}
public int size() {
return this.delegate.size();
@pysaumont
pysaumont / Countdown.fr
Last active January 3, 2016 15:16
Frege version of the Countdown program
module Countdown where
--Expressions
-----------
native getCPUTime java.lang.System.currentTimeMillis :: () -> IO Long
pure native formatLocale java.lang.String.format :: Maybe JLocale -> String -> Float -> String
data JLocale = pure native java.util.Locale
format s f = formatLocale Nothing s f