Cli.env_order: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 4056-4062 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=4056&end_line=4062 import Base def env_order(fields: List<&2, Field>, +ids: List<&2, String>) -> List<&2, String>: match fields: case Nil{}: ids case Field{id, values, source} <> tail: env_order(tail, Bool.pick(List<&2, String>, source_env(source), append_unique(ids, id), ids)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Field https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=append_unique https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=source_env