Annotation of parser3/tests/246.html, revision 1.1
1.1 ! misha 1: @main[]
! 2: $h[^hash::create[]]
! 3: ^first_and_last[Empty hash (^$h[^^hash::create[]]);$h]
! 4:
! 5: $h.1[a]
! 6: ^first_and_last[One element was added (^$h.1[a]);$h]
! 7:
! 8: ^h.delete[1]
! 9: ^first_and_last[One element was deleted (^^h.delete[1]);$h]
! 10:
! 11: $h.1[a]
! 12: ^first_and_last[One element was added (^$h.1[a]);$h]
! 13:
! 14: $h[
! 15: $.1[a]
! 16: $.2[b]
! 17: $.3[c]
! 18: $.4[d]
! 19: $.5[e]
! 20: ]
! 21: ^first_and_last[Hash with 5 elements (^$h[ ^$.1[a] ^$.2[b] ^$.3[c] ^$.4[d] ^$.5[e] ]);$h]
! 22:
! 23: ^h.delete[5]
! 24: ^first_and_last[The last element was deleted (^^h.delete[5]);$h]
! 25:
! 26: ^h.delete[1]
! 27: ^first_and_last[The first element was deleted (^^h.delete[1]);$h]
! 28:
! 29: $h.5[e]
! 30: ^first_and_last[One element was added at the end (^$h.5[e]);$h]
! 31:
! 32: $h.3[cc]
! 33: ^first_and_last[One element was added at the middle (^$h.3[cc]);$h]
! 34:
! 35: <h3>_at on hash with 5 elements (^$h[ ^$.1[a] ^$.2[b] ^$.3[c] ^$.4[d] ^$.5[e] ])</h3>
! 36: $h[
! 37: $.1[a]
! 38: $.2[b]
! 39: $.3[c]
! 40: $.4[d]
! 41: $.5[e]
! 42: ]
! 43: ^^h._at(0)=^h._at(0)=<br />
! 44: ^^h._at(1)=^h._at(1)=<br />
! 45: ^^h._at(2)=^h._at(2)=<br />
! 46: ^^h._at(3)=^h._at(3)=<br />
! 47: ^^h._at(4)=^h._at(4)=<br />
! 48: <br />
! 49: ^^h._at(-1)=^h._at(-1)=<br />
! 50: ^^h._at(-2)=^h._at(-2)=<br />
! 51: ^^h._at(-3)=^h._at(-3)=<br />
! 52: ^^h._at(-4)=^h._at(-4)=<br />
! 53: ^^h._at(-5)=^h._at(-5)=<br />
! 54:
! 55: @first_and_last[sTitle;h]
! 56: ^if(def $sTitle){<h3>$sTitle</h3>}
! 57: first:last='^h._at[first]':'^h._at[last]'<br />
E-mail: