gordon.p
来自「早期freebsd实现」· P 代码 · 共 27 行
P
27 行
program ffunc( output ); type comparisons = ( less , equal , greater ); function insert( function comparitor( this , that : integer ) : comparisons; here , there : integer ) : boolean; function equality : boolean; begin if comparitor( here , there ) = equal then begin equality := true end else begin equality := false end end; begin insert := equality; end; function compare( this , that : integer ) : comparisons; begin if this < that then compare := less else if this = that then compare := equal else compare := greater end; begin writeln( insert( compare , 17 , 23 ) ); end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?