Skip to content

ProfunctorRecordTypeable.versionSwitch for version control #6

Open
@clinuxrulz

Description

@clinuxrulz
public interface ProfunctorRecordTypeable<F_> extends Profunctor<F_> {
    <A,B,V> __<__<F_,P2<A,V>>,P2<B,V>> versionSwitch(PRecordTypeable<V,V> version, F<V,PRecordTypeable<A,B>> switchFn);
    .
    .
    .
}

This allows handling JSON/XML files with version numbers. On loading you can read the version number field then switch to another loader based on the version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions