adapt ( delta! #chars first? -- bias )


Vocabulary
punycode.private

Inputs
delta!an object
#charsan object
first?an object


Outputs
biasan object


Definition


:: adapt ( delta! #chars first? -- bias )
delta first? DAMP 2 ? /i delta! delta dup #chars /i +
delta! 0 [ delta 455 > ] [ delta 35 /i delta! BASE + ] while
BASE delta * delta SKEW + /i + ;