Integer Operations
Basic operations
Module
UTCGP.integer_basic — Module
Basic Int functions
Exports :
- bundle_integer_basic :
identity_int
Functions
UTCGP.integer_basic.identity_int — Function
identity_int(from::Int, args...)julia> identity_int(3)
3Find First in vector
Module
UTCGP.integer_find — Module
find conditions and return the position
Exports :
- bundle_integer_find :
find_firstindex_of_first_true
Functions
UTCGP.integer_find.find_first — Function
find_first(from::Vector{<:Number}, what::Number, args...)Returns the position of the first match between elements in from and what.
If there is no match, it returns 0.
julia> find_first([1,2,3], 3)
3julia> find_first([1,2,3], 10)
0 Modulo Operations
Module
UTCGP.integer_modulo — Module
modulo
Exports :
- bundle_integer_modulo :
modulo
Functions
UTCGP.integer_modulo.modulo — Function
modulo(a::Number, b::Number, args...)Returns a % b.
Throws error if b == 0.
julia> modulo(10,2)
0julia> modulo(11,2)
1