ABAP关键字 reduce
ABAP没有函数指针,大概只能用来求和?
来个一句话乘法口诀表:
cl_demo_output=>display( REDUCE string( INIT r TYPE string
FOR I = 1 WHILE I < 10
NEXT r = r && cl_abap_char_utilities=>cr_lf &&
REDUCE string( INIT s TYPE string
FOR j = 1 WHILE j < I + 1
NEXT s = |{ s } { j } * { I } = { I * j } | ) ) ).
效果