View Source Qik (Qik v0.0.1)
Documentation for Qik
.
Link to this section Summary
Functions
Range of indexes for any enumerable
Convert enumerable of strings to floats
Convert enumerable of strings to integers
This function read file with file_name, replaces all CRLF with just LF. Additional arguments may be passed in, to do common parsing tasks.
Split any enumerable into lists, defining your custom separator.
Link to this section Functions
Range of indexes for any enumerable
Convert enumerable of strings to floats
Convert enumerable of strings to integers
This function read file with file_name, replaces all CRLF with just LF. Additional arguments may be passed in, to do common parsing tasks.
- Argument
file_name
is just a string, path to file - Argument
split
may be atom:no
(don't split), a string, a list of strings, a regular expression, or a compiled pattern (used in String.split/3) - Argument
map
may be atom:no
(don't map), or the function to map with - Argument
filter
may be atom:no
(don't filter), or the function to filter with
Split any enumerable into lists, defining your custom separator.
example-1
Example 1:
Qik.split_by([1,2,3,4,5,1,2,3,4,5],3)
# [[1, 2], [4, 5, 1, 2], [4, 5]]
example-2
Example 2:
Qik.split_by('abcdi12345i.,-', ?i)
# ['abcd', '12345', '.,-']