Skip to content

Conversation

@Ved-Mahajan
Copy link
Contributor

Added the function fold that returns a VectorFold which when unfolded gives the original vector.
Example:

v1 = VectorFold([42,3,45,6],13,4)
w1 = unfold(v1)
v11 = fold(w1)

julia> unfold(v11) == w1
true
v2 = VectorFold([34,34,43,43],10,3)
w2 = unfold(v3)
v22 = fold(w2)

julia> unfold(v22) == w2
true

@Azzaare Azzaare added the enhancement New feature or request label Mar 17, 2021
@Ved-Mahajan Ved-Mahajan merged commit 98d96f7 into main Mar 17, 2021
@Azzaare Azzaare deleted the add-fold branch March 25, 2021 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants