f88992da61
The type checker now correctly handles unwrapping `Stream(T)` types for lambda arguments. A new `build_map_stream` function has been added to `rtl/streams.rs` to facilitate field access on streams. The `create-random-ohlc` function now returns a `Stream` instead of a `Series`. Examples have been updated to reflect these changes and demonstrate stream usage.
10 lines
158 B
Plaintext
10 lines
158 B
Plaintext
(do
|
|
(def stream (create-random-ohlc 42 200))
|
|
|
|
(macro prt [m] `(pipe (~m stream) (fn [s] (print ~m "=" s))))
|
|
|
|
(prt .open)
|
|
(prt .high)
|
|
(prt .low)
|
|
(prt .close)
|
|
) |