func
func copied to clipboard
support records as functions
library(record) supports terms with named arguments. Allow one to use a record as a function mapping an argument name to its value. Like this
write(Person$name).
Which expands into something like this
person_name(Person, X),
write(X).
This requires issue #2 to be finished first since we can't know what Person represents until run time.