Answer.code: def of snap@1.4.0.0 Import: import snap@1.4.0.0/src/answer.bend as Answer Lines 14-21 of snap@1.4.0.0/src/answer.bend: https://jend.leeeet.dev/read.txt?path=snap@1.4.0.0/src/answer.bend&start_line=14&end_line=21 import Base # the exit status a run answered with: the answer up to its first newline. # It reads no further, so a long body costs nothing. def code(out: String) -> String: match out: case SNil{}: SNil{} case SCon{+ch, tail}: code.at(Char.is_eq(ch, '\n'), ch, _u => code(tail)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/src/answer.bend&name=code.at