This
|
map(x-x[1:min(length(x),15)],A)
This is ok, but now i must take only last char from any row this array
A. How do it ?
julia map(x-x[length(x)],A)
ERROR: BoundsError()
in next at utf8.jl:56
in anonymous at none:1
in map_to! at abstractarray.jl:1311
in anonymous at none:1
in map at
What version of Julia are you running on?
That worked for me, i.e.
julia z = [a, foo, bar]
3-element Array{UTF8String,1}:
foobar⊕
foo
bar
julia map(x-x[end], z)
3-element Array{Char,1}:
'⊕'
'o'
'r'
On Friday, July 17, 2015 at 9:16:27 AM UTC-4, paul analyst wrote:
This
Try:
map(x-x[1:min(length(x),15)], A)
On Thursday, July 2, 2015 at 3:06:33 PM UTC-4, paul analyst wrote:
How from dimensional array cut out no more than the first 15 characters of
each line, without loop. is posible it ?
I have :
julia A
3-element Array{Any,1}:
Lorem ipsum dolor sit
Thx Tom,
nice !!!
Paul
W dniu 2015-07-02 o 21:13, Tom Breloff pisze:
|
map(x-x[1:min(length(x),15)],A)
|