Skip to content

Commit 4ed2677

Browse files
author
Pietro Vertechi
committed
updated README
1 parent 4ba0eed commit 4ed2677

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ julia> s.re
3030
0.874437 0.929336
3131
```
3232

33+
Note that the same approach can be used directly from an `Array` of complex numbers:
34+
35+
```julia
36+
julia> StructArray([1+im, 3-2im])
37+
2-element StructArray{Complex{Int64},1,NamedTuple{(:re, :im),Tuple{Array{Int64,1},Array{Int64,1}}}}:
38+
1 + 1im
39+
3 - 2im
40+
```
41+
3342
## Example usage to store a data table
3443

3544
```julia
@@ -52,11 +61,3 @@ julia> push!(t, (a = 3, b = "z"))
5261
(a = 2, b = "y")
5362
(a = 3, b = "z")
5463
```
55-
56-
## Lightweight package
57-
58-
This package aims to be extremely lightweight: so far it has 0 dependencies. One of the reasons to keep it so is to promote its use as a building block for table manipulation packages.
59-
60-
## Warning
61-
62-
The package is still pretty much under development and available only on Julia 0.7 (as it uses `NamedTuples` extensively).

0 commit comments

Comments
 (0)