By any chance someone knows how I can sort this collection [2,5,3,4]
from smallest to largest using |>
custom operators
infix operator |>
var array = [2,5,3,4]
func |> (a: Int , b:(Int)->Int)->Int{
return b(a)
}
I carry this but honestly I have no idea how to order the collection from smallest to largest using custom operators, could someone help me please I would really appreciate it