Cli.fish_body: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6150-6155 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6150&end_line=6155 import Base def fish_body(s: String) -> String: match s: case SNil{}: SNil{} case SCon{Chr{39}, tail}: String.append("\\'", fish_body(tail)) case SCon{Chr{92}, tail}: String.append("\\\\", fish_body(tail)) case SCon{c, tail}: SCon{c, fish_body(tail)} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil