mozart - How to bind an unbound value in a List in Oz -
mozart - How to bind an unbound value in a List in Oz -
let's have next code:
local l in l = {list.make 10 $} % bind nth element here end
how 1 set of these unbound values? oz list documentation didn't shed lite on this. related question found was: how alter element in list in oz? reply didn't compile me, nor did find how compile.
i able utilize oz list documentation work!
declare temp index value l in l = {list.make 10 $} index = %index bound value = %value bound temp = {list.mapind l fun {$ b} if == index b = value else b end end $}
oz mozart
Comments
Post a Comment