Skip to content

Instantly share code, notes, and snippets.

View jeremylcarter's full-sized avatar

Jeremy Carter jeremylcarter

  • jeremycarter
  • Newcastle, Australia
View GitHub Profile
public class ColumnInfo {
...
...
...
public bool OneToOneColumn { get; set; }
inline fun <T, R> Iterable<T>.mapWithPrevious(transform: (previous: R?, it: T) -> R): List<R> {
var previous: R? = null
return this.map { it ->
val transformed = transform(previous, it)
previous = transformed
transformed
}
}
val mapped = someCollection.mapWithPrevious { previousTransformation, it ->
version: '3'
services:
db:
image: postgres:9.6-alpine
container_name: camunda_db
ports:
- "5432:5432"
networks:
- camunda-bpm