Skip to content
This repository was archived by the owner on Sep 7, 2018. It is now read-only.

window could have simpler signature #110

@ra1u

Description

@ra1u

current

window :: (KnownNat n, Default a)
       -> Signal a               
       -> Vec (n + 1) (Signal a)   

proposed

window :: (KnownNat n, Default a)
       -> Signal a               
       -> Vec n (Signal a)   

This makes auto type deduction simpler and possible in cases where (n+1) becomes unmanageable.

Possible implementation:

window = iterateI (register def)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions