blob: 6044a39e4e68590212bbaec05bb79077b90426f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
(
(let config (DataSource 'config))
(let world (Configure! world config 'PureDataSource 'yt))
(let res_sink (DataSink 'result))
# Null -> Uint16
(let cast (SafeCast (Null) (DataType 'Uint16)))
(let world (Write! world res_sink (Key) cast '('('type))))
# Null -> Uint16?
(let cast (SafeCast (Null) (OptionalType (DataType 'Uint16))))
(let world (Write! world res_sink (Key) cast '('('type))))
# Just(Null) -> Null
(let cast (SafeCast (Just (Null)) (NullType)))
(let world (Write! world res_sink (Key) cast '('('type))))
# Nothing(Null?) -> Null
(let cast (SafeCast (Nothing (OptionalType (NullType))) (NullType)))
(let world (Write! world res_sink (Key) cast '('('type))))
# Uint16 -> Null
(let cast (SafeCast (Uint16 '0) (NullType)))
(let world (Write! world res_sink (Key) cast '('('type))))
# Nothing(Uint16?) -> Null
(let cast (SafeCast (Nothing (OptionalType (DataType 'Uint16))) (NullType)))
(let world (Write! world res_sink (Key) cast '('('type))))
# Null -> Null?
(let cast (SafeCast (Null) (OptionalType (NullType))))
(let world (Write! world res_sink (Key) cast '('('type))))
(let world (Commit! world res_sink))
(return world)
)
|