Types, and type systems, are used to enforce levels of abstraction in programs.

0
votes
1answer
16 views

Generic C# BST tree, choosing type

So I created a generic BST in C#, I've tested and it works well. I want to finish off the program asking the user to enter a type of the tree they'd like to use, then it will create a tree of that ...
2
votes
1answer
34 views

Why can't C# infer this type? [duplicate]

In VS2015:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace TypeInference{public interface IResolvable<T>...
0
votes
0answers
13 views

How to map datatype to set of that datatype

The code:abstract class DataContainer(public val path: String)val preloaded: MutableMap<Class<out DataContainer>, HashSet<out DataContainer>>=hashMapOf()I would like to know ...
1
vote
2answers
55 views

Can a pointer to subclass be assigned to varibale with type of superclass?

Suppose there is a class A which has two subclasses, Aa and Ab. I want to make an array that can store pointers to objects of class Aa and Ab. If an array is declared with the type of class A, is this ...
0
votes
1answer
37 views

Scala: Convert heterogeneous Tuple to List

On the Scala command line, there is no problem writing: List((1,2),(1,'a'))But I can't seem to write a function that would convert a Tuple2 to a List, because Tuple2 takes 2 type parameters, but ...
0
votes
1answer
60 views

Generating Dynamic Data Randomly

I have a system in haskell that uses Data.Dynamic and Type.Reflection to perform inference and calculations. I would like to be able to generate dynamic data randomly.Generating dynamic data is easy ...
0
votes
0answers
8 views

Convert column type INTERVAL to cell type in MS Excel via ODBC

I would like to import INTERVAL data type via PostgreSQL ODBC driver to MS Excel sheet. The cell type becomes General. Is it possible to import the data type somehow so the cell type is Time?
2
votes
1answer
30 views

Inference of traits in scala

I'm having trouble with type inference in scala. I'm using classes with higher-kinded types, which extend some traits; but the scala compiler can't resolve the types to the traits they extend. The ...
2
votes
2answers
51 views

Printing Dynamic Data

I have a system in haskell that uses Data.Dynamic and Type.Reflection to perform inference and calculations. I would like to be able to print the results. Printing is easy when the type is supplied ...
0
votes
1answer
57 views

Python, not able to get the index working in my list

I have a list that contains some values as given below:PC1=list();PC1=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,...
0
votes
1answer
32 views

Type conversion issue with Apache Camel and Spring

I'm trying to externalize my Camel Spring (Camel 2.20.2; Spring 4.3.14) configuration into an application.properties property file. This property file has the following content:net.sender1.port=...
0
votes
0answers
26 views

Matching typed data emitters with partial data consumers

I want to generate abilities in a video game by mixing and matching ability skeletons which produce data (ex. a projectile that, when it collides, emits the owner's location, the projectile position, ...
0
votes
1answer
39 views

How do you Change a type from one to another in Ada?

I am confused about changing types in Ada. Specifically receiving user input, which is stored as a string, and then performing operations on it as a float or integer. My goal is to make a table of ...
1
vote
2answers
52 views

Golang TypeOf without an instance and passing result to a func

Is it possible in go to get a "Type" without an instance? I've seen some examples that utilize reflect.TypeOf() but they all deal with an instance. Below is a snippet of what I am attempting to do:...
0
votes
1answer
24 views

Is there a way to accept an argument in a cython function without explicitly specifying its type?

I am a newbie to Cython. I am trying to write a function that can accept either a tuple or list as an argument.I understand that passing a void* argument to a C++ function allows us to do this (...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,