Hi, I would like to use memoize from Guava to memo...
# announcements
d
Hi, I would like to use memoize from Guava to memoize function call. Guava works on Supplier interfaces. Is there any way to convert the Supplier<T> result to function? fun <T> memoize(supplier: () -> T): () -> T = Suppliers.memoize(supplier) Compiler complains that the expected result is () -> T but actual is Supplier<T>