Is there something in Julia similar to the as-patterns in Haskell?

Is this what you mean?

julia> my_list_of_pairs = [1=>2, 3=>4, 5=>6]
3-element Vector{Pair{Int64, Int64}}:
 1 => 2
 3 => 4
 5 => 6

julia> map(((x,y),) -> x+y, my_list_of_pairs)
3-element Vector{Int64}:
  3
  7
 11
2 Likes