|
Hi, all!
Is there a kind of implementation (at least partial) of java collections (Set, List, Map, Collection ...) for Delphi 2010?
I need it for make porting code from java to Delphi a little bit easier.
Started by kuaw26 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The Contnrs.pas unit has many of these types, like TStack, TBucketList, etc.
There is DeHL.
|
|
I'm learning PHP5 (last time I checked PHP was in PHP4 days) and I'm glad to see that PHP5 OO is more Java-alike than the PHP4 one but there's still an issue that makes me feel quite unconfortable because of my Java background : ARRAYS.
I'm reading "Proffesional...
Started by ktulur on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
However, in PHP, due to the dynamically typed nature, it is quite common to sacrifice... .
It makes sense to have a collection of say "Cars" and another of "Motorbikes".
Collections in Java make a lot of sense since it's a strongly typed language.
|
|
I have used this analogy with my friends about collecting albums. I think it is something they can grasp. Otherwise they would think I am just a packrat colleting a bunch of old worthless junk.
I am building a library of all the best works and lesser ...
Started by spartanmanor on
, 15 posts
by 11 people.
Answer Snippets (Read the full thread at audiokarma):
Yes, I can see the connection...and yes, I used to collect certain authors/musicians in a very orderly fashion (some artists....
I just never could read a book more than once, and seldom watch a year .
Kinda like collecting movies too...
|
Ask your Facebook Friends
|
I am looking for a built-in extension method like Apply:
collection.Apply (predicate)
which will apply a method on all items contained in the collection.
I am asking first so that I don't write something that already exists.
EDIT: The reason I didn't ...
Started by Joan Venge on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Am not sure if there is something like that but why don't you use foreach, since you are applying.
|
|
Suppose you have a collection of a few hundred in-memory objects and you need to query this List to return objects matching some SQL or Criteria like query. For example, you might have a List of Car objects and you want to return all cars made during ...
Started by stian on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Potentially) object in the collection, you'll have to turn to a library like JoSQL (which has worked well), but eventually when you look at the flow of comparisons, it's pretty much just like looping over , in that it is a simple....
|
|
Hi,
I have a collection of elements on my page, and I want to see if they are visible or not currently.
So:
$(".someClass")
How can I loop through and figure this out? because if it is visible, i have to fire another function.
Started by Blankman on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Consider a situation like this:
<div style="display:none;"><div class="someClass"></div>.
|
|
Soo... F# no longer has IEnumerable.map_with_type... which is the way people were mapping over collections. How do I do that now?
let urlPat = "href\\s*=\\s*(?:(?:\\\"(?<url>[^\\\"]*)\\\")|(?<url>[^\\s]* ))";; let urlRegex = new Regex(urlPat...
Started by Justin Bozonier on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This is available only for Seq.
Is Seq.cast what you are looking for?
Hi, you would write the last line like this:
let urls is the right target type (because it knows what matchToUrl looks like).
|
|
The problem: Maintain a bidirectional many-to-one relationship among java objects.
Something like the Google/Commons Collections bidi maps, but I want to allow duplicate values on the forward side, and have sets of the forward keys as the reverse side...
Started by rgeorge on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I might misunderstand your model, but if your Location and Region have correct equals() and hashCode() implemented, then the set of Location -> Region is just a classical simple Map implementation (multiple distinct keys can point to the same object... .
|
|
I'd like to store a set of key/value pairs in the application settings of my ASP.NET web app, but I'm not finding a straightforward way to do that. For example, these two questions tell me that StringDictionary etc. won't serialize to XML and suggest ...
Started by Matt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Sales@somedomain.com" /> </appSettings>
Then in your code you're just doing something like neater, you can create a custom Configuration Section like this (C# I'm afraid, but the docs have VB; } } } }
Then in your web.config have....
|
|
Hi All:
I've used VI(M) for over 2 years, and I really love its easy navigation and keyboard orientation. So except VI(VIM, gvim), I try to find more VIM-like tools(softwares) to benefit more. And I've got the following findings:
apvlv : for pdf reading...
Started by Tower Joo on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
like bvi for hex editing and have used eclim in the past to open VIM windows inside the Eclipse.
|