com.github.tonivade.purefun.Bindable Maven / Gradle / Ivy
/*
* Copyright (c) 2018-2021, Antonio Gabriel Muñoz Conejo
* Distributed under the terms of the MIT License
*/
package com.github.tonivade.purefun;
public interface Bindable extends Mappable {
@Override
Bindable map(Function1 super A, ? extends R> mapper);
Bindable flatMap(Function1 super A, ? extends Kind> mapper);
default Bindable andThen(Kind next) {
return flatMap(ignore -> next);
}
@SuppressWarnings("unchecked")
static Bindable narrowK(Kind kind) {
return (Bindable) kind;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy