mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-11 20:22:51 -06:00
Added list patterns. Added som simple prelude functions.
This commit is contained in:
6
transfer/examples/list.tr
Normal file
6
transfer/examples/list.tr
Normal file
@@ -0,0 +1,6 @@
|
||||
import prelude
|
||||
|
||||
l1 = append ? [1,2,3,5,6] [3]
|
||||
l2 = 2 :: l1
|
||||
|
||||
main = rec { x = length ? l2; y = l2}
|
||||
Reference in New Issue
Block a user