Open thautwarm opened 2 years ago
handling information stored in a sequence.
before:
info1 = seq[1] info2 = seq[2] .... info3 = seq[3:length(info2)+3]
after:
match seq with | [info1, info2, args...] -> args[:length(info2)]
unexpected bugs from hard encoding (seq[3:length(info2)+3]) is eliminated.
seq[3:length(info2)+3]
handling information stored in a sequence.
before:
after:
unexpected bugs from hard encoding (
seq[3:length(info2)+3]
) is eliminated.