BUCL.io / maxlength
Zählt die Zeichen des längsten Parameters.
Beispiel
{res} maxlength "ha" "llo"
Quellcode
#description: Get max length of all parameters. #description-DE: Zählt die Zeichen des längsten Parameters. #sample: {res} maxlength "ha" "llo" #make flat numeric list of all parameters (incl. named onces) {flat} = "" {loop} each {input} if {loop/first} {flat} = {loop/value} else {flat} = {flat} {loop/value} #search the max length {maxlength} = 0 {inp} each {flat} {thislen} length {inp/value} if {thislen} > {maxlength} {maxlength} = {thislen} {output} = {maxlength}