Question: Please code this method in OCaml and without using list library methods . This code should only be implemented using the standard library. Thank you.

Please code this method in OCaml and without using list library methods.
This code should only be implemented using the standard library. Thank you.
jumping_tuples lst1 lst2 - Type: ( ( a 'b) list (c 'a) list ' ' list - Description: Given two lists of two element tuples, 1 st1 and lst2, returns a list with the first element of every odd indexed tuple in 1st1, and the second element of every even indexed tuple in 1st2, interwoven together (starting from index 0). For this function, consider 0 as even. If the lists are not the same length, the resulting list should have the length of the shorter of the input lists. - Examples: jumping_tuples [(1,2);(3,4);(5,6)][(7,8);(9,10);(11,12)]=[8;3;12] jumping_tuples [( true, "a"); (false, "b") )][(100, false )]=[ false ] jumping_tuples [( "first", "second"); ("third", "fourth") ][( "fifth", "sixth"); ("seventh", "eighth") ]=[ "sixth"; "third" ] jumping_tuples [][]=[]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
