{
    a: in0 match {
        case [x ~ xs] -> [x, xs[0]]
    },
    b: in0 match {
            case [x ~ xs] -> [x, xs]
        },
    c: in0 match {
            case [x ~ xs] -> [x, xs[-1 to 0]]
        }
}