diff --git a/book/src/super-sql/functions/errors/error.md b/book/src/super-sql/functions/errors/error.md index da67473a1a..49c2a68c47 100644 --- a/book/src/super-sql/functions/errors/error.md +++ b/book/src/super-sql/functions/errors/error.md @@ -57,8 +57,8 @@ values {this,err:is_error(this),kind:kind(this)} error("exception") "exception" # expected output -{this:error("exception"),err:true,kind:"error"} -{this:"exception",err:false,kind:"primitive"} +{that:error("exception"),err:true,kind:"error"} +{that:"exception",err:false,kind:"primitive"} ``` --- diff --git a/book/src/super-sql/functions/generics/len.md b/book/src/super-sql/functions/generics/len.md index 96d60e02f7..5b7c34b611 100644 --- a/book/src/super-sql/functions/generics/len.md +++ b/book/src/super-sql/functions/generics/len.md @@ -64,17 +64,17 @@ null |["x","y","z"]| "hello" # expected output -{this:[1,2,3],kind:"array",type:<[int64]>,len:3} -{this:0x0102ffee,kind:"primitive",type:,len:4} -{this:192.168.4.1,kind:"primitive",type:,len:4} -{this:2001:db8:85a3::8a2e:370:7334,kind:"primitive",type:,len:16} -{this:|{"APPL":145.03,"GOOG":87.07}|,kind:"map",type:<|{string:float64}|>,len:2} -{this:192.168.4.0/24,kind:"primitive",type:,len:8} -{this:2001:db8:abcd::/64,kind:"primitive",type:,len:32} -{this:null,kind:"primitive",type:,len:0} -{this:{a:1,b:2},kind:"record",type:<{a:int64,b:int64}>,len:2} -{this:|["x","y","z"]|,kind:"set",type:<|[string]|>,len:3} -{this:"hello",kind:"primitive",type:,len:5} +{that:[1,2,3],kind:"array",type:<[int64]>,len:3} +{that:0x0102ffee,kind:"primitive",type:,len:4} +{that:192.168.4.1,kind:"primitive",type:,len:4} +{that:2001:db8:85a3::8a2e:370:7334,kind:"primitive",type:,len:16} +{that:|{"APPL":145.03,"GOOG":87.07}|,kind:"map",type:<|{string:float64}|>,len:2} +{that:192.168.4.0/24,kind:"primitive",type:,len:8} +{that:2001:db8:abcd::/64,kind:"primitive",type:,len:32} +{that:null,kind:"primitive",type:,len:0} +{that:{a:1,b:2},kind:"record",type:<{a:int64,b:int64}>,len:2} +{that:|["x","y","z"]|,kind:"set",type:<|[string]|>,len:3} +{that:"hello",kind:"primitive",type:,len:5} ``` _The length of various values of type `type`_ @@ -96,18 +96,18 @@ values {this,kind:kind(this),type:typeof(this),len:len(this)} <|[{a:int64,b:string,c:bool}]|> <(int64|float64|string)> # expected output -{this:<[string]>,kind:"array",type:,len:1} -{this:<[{a:int64,b:string,c:bool}]>,kind:"array",type:,len:3} -{this:,kind:"enum",type:,len:2} -{this:,kind:"error",type:,len:1} -{this:,kind:"error",type:,len:2} -{this:<|{string:float64}|>,kind:"map",type:,len:1} -{this:<|{string:{x:int64,y:float64}}|>,kind:"map",type:,len:2} -{this:,kind:"primitive",type:,len:1} -{this:<{a:int64,b:string,c:bool}>,kind:"record",type:,len:3} -{this:<|[string]|>,kind:"set",type:,len:1} -{this:<|[{a:int64,b:string,c:bool}]|>,kind:"set",type:,len:3} -{this:,kind:"union",type:,len:3} +{that:<[string]>,kind:"array",type:,len:1} +{that:<[{a:int64,b:string,c:bool}]>,kind:"array",type:,len:3} +{that:,kind:"enum",type:,len:2} +{that:,kind:"error",type:,len:1} +{that:,kind:"error",type:,len:2} +{that:<|{string:float64}|>,kind:"map",type:,len:1} +{that:<|{string:{x:int64,y:float64}}|>,kind:"map",type:,len:2} +{that:,kind:"primitive",type:,len:1} +{that:<{a:int64,b:string,c:bool}>,kind:"record",type:,len:3} +{that:<|[string]|>,kind:"set",type:,len:1} +{that:<|[{a:int64,b:string,c:bool}]|>,kind:"set",type:,len:3} +{that:,kind:"union",type:,len:3} ``` _Unsupported values produce [errors](../../types/error.md)_ @@ -122,9 +122,9 @@ error("hello") 1 2024-07-30T20:05:15.118252Z # expected output -{this:true,kind:"primitive",type:,len:error({message:"len: bad type",on:true})} -{this:10m30s,kind:"primitive",type:,len:error({message:"len: bad type",on:10m30s})} -{this:error("hello"),kind:"error",type:,len:error({message:"len()",on:error("hello")})} -{this:1,kind:"primitive",type:,len:error({message:"len: bad type",on:1})} -{this:2024-07-30T20:05:15.118252Z,kind:"primitive",type: