Guest User

Untitled

a guest
Oct 20th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. # you could define function
  2. julia> f = x->x+1
  3.  
  4. # and use it (f mapped to array elements) ->
  5. julia> map(f, [1, 2, 3])
  6. 3-element Array{Int64,1}:
  7. 2
  8. 3
  9. 4
Add Comment
Please, Sign In to add comment