A vector of length 52
Turn a List a into a Vector52 a. If there are not enough items in the List a, then this function returns Nothing. The extra items in the input list, if there are any, is returned as the first element in the output tuple.
Vector3.fromList []
--> Nothing
Vector3.fromList [ 1 ]
--> Nothing
Vector3.fromList [ 5, 6, 7, 8 ]
--> Just ([ 8 ], Vector3.from3 5 6 7)Make a Vector52 a filled with just one item repeated over and over again.
Make a Vector52 a from 52elements
Turn a List a into a Vector52 a. If there are not enough items in the List a, then fill in the remaining spots with a default value. The extra items in the input list, if there are any, is returned as the first element in the output tuple.
Vector3.fromListWithDefault 1 []
--> ([] ,Vector3.from3 1 1 1)
Vector3.fromListWithDefault 2 [ 1 ]
--> ([], Vector3.from3 1 2 2)
Vector3.fromListWithDefault 2 [ 5, 6, 7, 8 ]
--> ([ 8 ], Vector3.from3 5 6 7)Make a Vector52 a using a function that takes an Int, representing the index
Make a Vector52 a using a function that takes an Index
All the indices to a Vector52 a. There are exactly 52 of them. Its kind of like an Int except there is a finite amount of them.
Turn the Index into an Int
Try and turn an Int into an Index, returning Nothing if the Int is above the maximum index of this Vector52 a
Given an index, get the next one. Unless its the last index in which case there is no next index (Nothing)
Given an index, get the previous one. Unless its the 0 index in which case there is no previous index (Nothing)
Apply a function to every element in a Vector52 a.
Transform just one particular item at a particular Index
Apply a function on every element with its index as first argument
Reduce a Vector52 a from the right.
Reduce a Vector52 a from the left.
Convert a Vector52 a into a List a of length 52
Turn a Vector52 a elm into a list, where each element is paired with its Index
Separate a Vector52 a into its last element and everything else.
Split a Vector52 a into its first element and the rest
Add an element to the end of a Vector52 a, incrementing its size by 1
Add an element to the front of a vector, incrementing the vector size by 1
The length of this vector type, which is 52
Reverse the order of the items in a Vector52 a
See if a Vector52 a contains a value
Break a List a down into groups of Vector52 a. The output is a tuple, where the left side is a list of the remainder.
Vector3.group [ 1, 2, 3 ]
--> ([] , [ Vector3.from3 1 2 3 ])
Vector3.group [ 1, 2, 3, 4 ]
--> ([ 4 ] , [ Vector3.from3 1 2 3 ])
Vector3.group [ 1, 2, 3, 4, 5 ]
--> ([ 4, 5 ] , [ Vector3.from3 1 2 3 ])
Vector3.group [ 1, 2, 3, 4, 5, 6 ]
--> ([] , [ Vector3.from3 1 2 3, Vector3.from3 4 5 6 ])
A vector that contains exactly 52 elements