ex1 09¶
Basic Info¶
Functional Programming
└── Lab ML
└── 0314
└── ex1 09.sml
Preview¶
(*Write a function that takes an element a and a list of lists L and inserts a at the front of each of these lists*)
fun insertAll(a,nil) =
nil
| insertAll(a,L::Ls) =
(a::L)::insertAll(a,Ls)
;