Idris-dev/test/records003/run
Edwin Brady 9aa90bec74 Added nested record access syntax
record { a->b->c } x is equivalent to c (b (a x))

It's longer, but symmetric wrt the update syntax. Also added a test.
2014-05-02 08:58:57 +02:00

5 lines
94 B
Bash
Executable File

#!/usr/bin/env bash
idris $@ records003.idr -o records003
./records003
rm -f records003 *.ibc