Integer Operations

Basic operations

Module

Functions

julia> identity_int(3)
3

Find First in vector

Module

UTCGP.integer_findModule

find conditions and return the position

Exports :

  • bundle_integer_find :
    • find_first
    • index_of_first_true
source

Functions

UTCGP.integer_find.find_firstFunction
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.

source
julia> find_first([1,2,3], 3)
3
julia> find_first([1,2,3], 10)
0 

Modulo Operations

Module

Functions

julia> modulo(10,2)
0
julia> modulo(11,2)
1