SendStmt)Pos()token.Pos typeSliceExpr func(x*SliceExpr)End()token.Pos func(x*SliceExpr)Pos()token.Pos typeSpec
当前范围中定义的所有变量以及导入,需求等等: iex>__ENV__.moduleniliex>__ENV__.file"iex"iex>__ENV__.requires[IEx.Helpers,Kernel,Kernel.Typespec
如果您需要'undefined'使用记录字段类型,则必须将其显式添加到typespec中,如第二个示例中所述。
|float@specadd(number,number)::number 它也可以用于位串以指定给定位段的类型: <<int::integer-little,rest::bits>>=bits 阅读Typespec