roc nightly pre-release, built from commit 5d09479fd36 on Fri Jun 14 09:11:54 UTC 2024
app [main] {
pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br",
}
import pf.Stdout
main =
dbg bug []
Stdout.line! "Done"
bug : List a -> List a
bug = \list ->
when list is
[] | [_, .. as rest] if List.isEmpty rest -> list
_ -> []
expect bug [] == []
roc nightly pre-release, built from commit 5d09479fd36 on Fri Jun 14 09:11:54 UTC 2024